Kevin Hester <kevinh@ispiri.com>, fixed null termination bug
This commit is contained in:
parent
882d617b8a
commit
e288cd8a8a
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue