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; }