diff options
author | Eric Wong <normalperson@yhbt.net> | 2007-02-19 07:58:05 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2007-02-19 07:58:05 +0000 |
commit | 658b8f53df5e13711632a36741e7c2b7a46ae8aa (patch) | |
tree | f448b69b3a6bb12dfcabf3bf7c77e4b9956e1783 /src/log.c | |
parent | 772dc6bc66e401bb6e1c27b120d6bdcee70aa193 (diff) | |
download | mpd-658b8f53df5e13711632a36741e7c2b7a46ae8aa.tar.gz mpd-658b8f53df5e13711632a36741e7c2b7a46ae8aa.tar.xz mpd-658b8f53df5e13711632a36741e7c2b7a46ae8aa.zip |
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
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -68,7 +68,7 @@ static const char *log_date(void) #define BUFFER_LENGTH 4096 static void buffer_warning(const char *fmt, va_list args) { - char buffer[BUFFER_LENGTH + 1]; + char buffer[BUFFER_LENGTH]; char *tmp = buffer; size_t len = BUFFER_LENGTH; |