Mercurial > mplayer.hg
changeset 33346:780f64c1ac7e
Fix bug introduced in r25726 that would cause us to write
uninitialized data into buffer.
author | reimar |
---|---|
date | Sat, 07 May 2011 21:15:13 +0000 |
parents | c6b4a486c108 |
children | f60b1fd07712 |
files | stream/pnm.c |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/pnm.c Sat May 07 21:01:38 2011 +0000 +++ b/stream/pnm.c Sat May 07 21:15:13 2011 +0000 @@ -416,7 +416,6 @@ static void pnm_send_request(pnm_t *p, uint32_t bandwidth) { - uint16_t i16; int c=sizeof(pnm_header); char fixme[]={0,1}; @@ -452,7 +451,6 @@ /* client id string */ p->buffer[c]=PNA_CLIENT_STRING; AV_WB16(&p->buffer[c+1], strlen(client_string)-1); /* don't know why do we have -1 here */ - memcpy(&p->buffer[c+1],&i16,2); memcpy(&p->buffer[c+3],client_string,strlen(client_string)+1); c=c+3+strlen(client_string)+1;