Loading...

mplayer-cvslog@mplayerhq.hu

[Prev] Thread [Next]  |  [Prev] Date [Next]

[MPlayer-cvslog] r34841 - trunk/libao2/ao_alsa.c reimar Thu Apr 05 15:01:25 2012

Author: reimar
Date: Thu Apr  5 23:59:09 2012
New Revision: 34841

Log:
vsnprintf always 0-terminates the string, so remove
extra code to do this explicitly.

Modified:
   trunk/libao2/ao_alsa.c

Modified: trunk/libao2/ao_alsa.c
==============================================================================
--- trunk/libao2/ao_alsa.c      Wed Apr  4 21:12:16 2012        (r34840)
+++ trunk/libao2/ao_alsa.c      Thu Apr  5 23:59:09 2012        (r34841)
@@ -77,7 +77,6 @@ static void alsa_error_handler(const cha
   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",
_______________________________________________
MPlayer-cvslog mailing list
[EMAIL PROTECTED]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-cvslog