NetBSD-Bugs archive

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

port-vax/45525: Unused buffer in crl.c .



>Number:         45525
>Category:       port-vax
>Synopsis:       Unused buffer in crl.c .
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-vax-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 26 19:35:00 +0000 2011
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Unused buffer ib crl.c .
>How-To-Repeat:

>Fix:
diff -u -p -r1.29 crl.c
--- sys/arch/vax/vax/crl.c      14 Dec 2010 23:44:49 -0000      1.29
+++ sys/arch/vax/vax/crl.c      26 Oct 2011 14:09:05 -0000
@@ -217,7 +217,7 @@ crlintr(void *arg)
 
                                snprintb(sbuf, sizeof(sbuf), CRLCS_BITS,
                                    crlstat.crl_cs);
-                               snprintb(sbuf, sizeof(sbuf), CRLDS_BITS,
+                               snprintb(sbuf2, sizeof(sbuf2), CRLDS_BITS,
                                    crlstat.crl_ds);
                                printf("crlcs=0x%s, crlds=0x%s\n", sbuf, sbuf2);
                                break;



Home | Main Index | Thread Index | Old Index