From 12bab01104963fb1bdc624419ae2988f71b83c6a Mon Sep 17 00:00:00 2001 From: mplayer-svn Date: Thu, 5 Apr 2012 21:59:09 +0000 Subject: [PATCH] ao_alsa: cleanup use of vsnprintf vsnprintf always 0-terminates the string, so remove extra code to do this explicitly. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34841 b3059339-0415-0410-9bf9-f77b7e298cf2 Author: reimar --- libao2/ao_alsa.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libao2/ao_alsa.c b/libao2/ao_alsa.c index 0c40146843..ee4d5d9051 100644 --- a/libao2/ao_alsa.c +++ b/libao2/ao_alsa.c @@ -83,7 +83,6 @@ static void alsa_error_handler(const char *file, int line, const char *function, 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",