diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-07-27 18:06:45 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-07-27 18:06:45 +0000 |
commit | 7450bd283f0082fe1b3499142ad5273067db70c6 (patch) | |
tree | 6d3d3ac6ca6ced550ccf97debc3cd288c17776b4 /src/libsputext | |
parent | 25ba0f3888a1e4c3b92f926ce8828d56e40e3c61 (diff) | |
download | xine-lib-7450bd283f0082fe1b3499142ad5273067db70c6.tar.gz xine-lib-7450bd283f0082fe1b3499142ad5273067db70c6.tar.bz2 |
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
Diffstat (limited to 'src/libsputext')
-rw-r--r-- | src/libsputext/demux_sputext.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |