From b3946c3bb1b49ea9f9d639251ab274c387763832 Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 22 Jun 2005 11:58:56 +0000 Subject: fix illegal memory accesses git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15798 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/realrtsp/sdpplin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmpdemux/realrtsp/sdpplin.c') diff --git a/libmpdemux/realrtsp/sdpplin.c b/libmpdemux/realrtsp/sdpplin.c index 229f4a0e68..ff9246a9e7 100644 --- a/libmpdemux/realrtsp/sdpplin.c +++ b/libmpdemux/realrtsp/sdpplin.c @@ -84,12 +84,12 @@ static char *b64_decode(const char *in, char *out, int *size) out[k++] = (b[2] << 6) | b[3]; i = a[2] == '=' ? 1 : (a[3] == '=' ? 2 : 3); if (i < 3) { - out[k]=0; + out[k - 1]=0; *size=k; return out; } } - out[k]=0; + out[k - 1]=0; *size=k; return out; } -- cgit v1.2.3