From e288cd8a8aa7fd03ced4371f938d8dd1643e224d Mon Sep 17 00:00:00 2001 From: Andrew Ip Date: Sat, 14 Dec 2002 06:29:57 +0000 Subject: [PATCH] Kevin Hester , fixed null termination bug --- src/lib/vsprintf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/vsprintf.c b/src/lib/vsprintf.c index e719a7c537..24153a582d 100644 --- a/src/lib/vsprintf.c +++ b/src/lib/vsprintf.c @@ -335,7 +335,9 @@ int vsprintf(char * buf, const char *fmt, va_list args) int i; str_buf = buf; i = vtxprintf(str_tx_byte, fmt, args); - str_buf = 0; + /* maeder/Ispiri -- The null termination was missing a deference */ + /* and was just zeroing out the pointer instead */ + *str_buf = '\0'; return i; }