[MPlayer-cvslog] r33433 - trunk/stream/pnm.c
reimar
subversion at mplayerhq.hu
Sat May 7 23:15:14 CEST 2011
Author: reimar
Date: Sat May 7 23:15:13 2011
New Revision: 33433
Log:
Fix bug introduced in r25726 that would cause us to write
uninitialized data into buffer.
Modified:
trunk/stream/pnm.c
Modified: trunk/stream/pnm.c
==============================================================================
--- trunk/stream/pnm.c Sat May 7 23:01:38 2011 (r33432)
+++ trunk/stream/pnm.c Sat May 7 23:15:13 2011 (r33433)
@@ -416,7 +416,6 @@ static int pnm_write_chunk(uint16_t chun
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 @@ static void pnm_send_request(pnm_t *p, u
/* 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;
More information about the MPlayer-cvslog
mailing list