]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Always terminate dump buffer
authorTed Lemon <source@isc.org>
Tue, 28 May 1996 18:15:22 +0000 (18:15 +0000)
committerTed Lemon <source@isc.org>
Tue, 28 May 1996 18:15:22 +0000 (18:15 +0000)
common/print.c
print.c

index 56463905b839b57c285791cf0c3c27be095a9693..5e9da4b0d5e3bd5439234211ff6b267043dfbb0f 100644 (file)
@@ -146,6 +146,8 @@ void dump_raw (buf, len)
        char lbuf [80];
        int lbix = 0;
 
+       lbuf [0] = 0;
+
        for (i = 0; i < len; i++) {
                if ((i & 15) == 0) {
                        if (lbix)
diff --git a/print.c b/print.c
index 56463905b839b57c285791cf0c3c27be095a9693..5e9da4b0d5e3bd5439234211ff6b267043dfbb0f 100644 (file)
--- a/print.c
+++ b/print.c
@@ -146,6 +146,8 @@ void dump_raw (buf, len)
        char lbuf [80];
        int lbix = 0;
 
+       lbuf [0] = 0;
+
        for (i = 0; i < len; i++) {
                if ((i & 15) == 0) {
                        if (lbix)