From 7450bd283f0082fe1b3499142ad5273067db70c6 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Tue, 27 Jul 2004 18:06:45 +0000 Subject: from the docs of sprintf: "when the strings overlap, the behaviour is undefined" (actually it works with glibc and sprintf, but not with snprintf) CVS patchset: 6859 CVS date: 2004/07/27 18:06:45 --- src/libsputext/demux_sputext.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libsputext') diff --git a/src/libsputext/demux_sputext.c b/src/libsputext/demux_sputext.c index 2d14b2edc..30ffb3bd7 100644 --- a/src/libsputext/demux_sputext.c +++ b/src/libsputext/demux_sputext.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_sputext.c,v 1.37 2004/07/22 14:19:12 mroi Exp $ + * $Id: demux_sputext.c,v 1.38 2004/07/27 18:06:46 mroi Exp $ * * code based on old libsputext/xine_decoder.c * @@ -1159,9 +1159,9 @@ static subtitle_t *sub_read_file (demux_sputext_t *this) { sprintf(buffer, "Read %i subtitles", this->num); if(this->errs) - sprintf(buffer, "%s, %i bad line(s).\n", buffer, this->errs); + sprintf(buffer + strlen(buffer), ", %i bad line(s).\n", this->errs); else - sprintf(buffer, "%s%c", buffer, '\n'); + strcat(buffer, "\n"); xprintf (this->stream->xine, XINE_VERBOSITY_DEBUG, buffer); } -- cgit v1.2.3