NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/41839: Missing parenthesis in pcnfsd_print.c



The following reply was made to PR bin/41839; it has been noted by GNATS.

From: henning petersen <henning.petersen%t-online.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/41839: Missing parenthesis in pcnfsd_print.c
Date: Fri, 07 Aug 2009 14:39:05 +0200

 henning.petersen%t-online.de@localhost schrieb:
 >> Number:         41839
 >> Category:       bin
 >> Synopsis:       Missing parenthesis in pcnfsd_print.c
 >> Confidential:   no
 >> Severity:       non-critical
 >> Priority:       medium
 >> Responsible:    bin-bug-people
 >> State:          open
 >> Class:          sw-bug
 >> Submitter-Id:   net
 >> Arrival-Date:   Fri Aug 07 11:45:00 +0000 2009
 >> Originator:     Henning Petersen
 >> Release:        current-NetBSD
 >> Organization:
 >> Environment:
 >> Description:
 >>     
 > Missing parenthesis found with programm cppcheck.
 >   
 >> How-To-Repeat:
 >>     
 >
 >   
 >> Fix:
 >>     
 > RCS file: /cvsroot/src/usr.sbin/rpc.pcnfsd/pcnfsd_print.c,v
 > retrieving revision 1.9
 > diff -r1.9 pcnfsd_print.c
 > 952c952
 > <                            strlcpy(status, "printing", sizeof9status));
 > ---
 >   
 >>                             strlcpy(status, "printing", sizeof(status));
 >>     
 >
 >
 > __________ Information from ESET NOD32 Antivirus, version of virus signature 
 > database 4314 (20090807) __________
 >
 > The message was checked by ESET NOD32 Antivirus.
 >
 > http://www.eset.com
 >
 >
 >
 >
 >   
 diff -u -r1.9 pcnfsd_print.c
 --- usr.sbin/rpc.pcnfsd/pcnfsd_print.c    18 Apr 2009 13:02:36 -0000    1.9
 +++ usr.sbin/rpc.pcnfsd/pcnfsd_print.c    7 Aug 2009 12:16:48 -0000
 @@ -949,7 +949,7 @@
              if (!strstr(buff, "disabled"))
                  *printing = TRUE;
              if (strstr(buff, "printing"))
 -                strlcpy(status, "printing", sizeof9status));
 +                strlcpy(status, "printing", sizeof(status));
              else
                  if (strstr(buff, "idle"))
                      strlcpy(status, "idle", sizeof(status));
 
 
 
 __________ Information from ESET NOD32 Antivirus, version of virus signature 
database 4314 (20090807) __________
 
 The message was checked by ESET NOD32 Antivirus.
 
 http://www.eset.com
 
 


Home | Main Index | Thread Index | Old Index