More (v)snprintf-related buffer over-allocations removed
Also took out an unnecessary memset in getPlayerErrorStr git-svn-id: https://svn.musicpd.org/mpd/trunk@5396 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -50,7 +50,7 @@ static void blockingWrite(const int fd, const char *string, size_t len)
|
||||
|
||||
void vfdprintf(const int fd, const char *fmt, va_list args)
|
||||
{
|
||||
static char buffer[BUFFER_LENGTH + 1];
|
||||
static char buffer[BUFFER_LENGTH];
|
||||
char *buf = buffer;
|
||||
size_t len;
|
||||
|
||||
|
Reference in New Issue
Block a user