changeset 34753:00ebd36202c6

vsnprintf always 0-terminates the string, so remove extra code to do this explicitly.
author reimar
date Thu, 05 Apr 2012 21:59:09 +0000
parents ad2b851c3f19
children 9d4720deada1
files libao2/ao_alsa.c
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_alsa.c	Wed Apr 04 19:12:16 2012 +0000
+++ b/libao2/ao_alsa.c	Thu Apr 05 21:59:09 2012 +0000
@@ -77,7 +77,6 @@
   va_start(va, format);
   vsnprintf(tmp, sizeof tmp, format, va);
   va_end(va);
-  tmp[sizeof tmp - 1] = '\0';
 
   if (err)
     mp_msg(MSGT_AO, MSGL_ERR, "[AO_ALSA] alsa-lib: %s:%i:(%s) %s: %s\n",