]> git.proxmox.com Git - mirror_frr.git/commitdiff
004-07-13 David Wiggins <dwiggins@bbn.com
authorgdt <gdt>
Tue, 13 Jul 2004 16:45:54 +0000 (16:45 +0000)
committergdt <gdt>
Tue, 13 Jul 2004 16:45:54 +0000 (16:45 +0000)
* kernel_socket.c (rtm_flag_dump): terminate buffer with '\0', not '0'.

This is arguably not a security problem, since strlcat is used to copy
to the buffer -gdt.

zebra/ChangeLog
zebra/kernel_socket.c

index acf2f8cba3a87efeb2a3a1cf8841a76698697d4c..5a0ff8c66464ff2e490e671f4c8e07bec77212fd 100644 (file)
@@ -1,3 +1,7 @@
+2004-07-13  David Wiggins <dwiggins@bbn.com
+
+       * kernel_socket.c (rtm_flag_dump): terminate buffer with '\0', not '0'.
+
 2004-07-13 Hasso Tepper <hasso@estpak.ee>
 
        * irdp_main.c: Add privilege change.
index 20c6cc8309e9a9d881e6e020bace7140eb933997..27b889578832ed727aa378f843980daad302df51 100644 (file)
@@ -178,7 +178,7 @@ rtm_flag_dump (int flag)
   struct message *mes;
   static char buf[BUFSIZ];
 
-  buf[0] = '0';
+  buf[0] = '\0';
   for (mes = rtm_flag_str; mes->key != 0; mes++)
     {
       if (mes->key & flag)