summaryrefslogtreecommitdiff
path: root/zebra
diff options
context:
space:
mode:
Diffstat (limited to 'zebra')
-rw-r--r--zebra/ChangeLog4
-rw-r--r--zebra/kernel_socket.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/zebra/ChangeLog b/zebra/ChangeLog
index acf2f8cb..5a0ff8c6 100644
--- a/zebra/ChangeLog
+++ b/zebra/ChangeLog
@@ -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.
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c
index 20c6cc83..27b88957 100644
--- a/zebra/kernel_socket.c
+++ b/zebra/kernel_socket.c
@@ -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)