# HG changeset patch # User reimar # Date 1304802913 0 # Node ID 780f64c1ac7ea949a111cb675ed635bc80b12b3b # Parent c6b4a486c108be14baccab8f92b31161407bed97 Fix bug introduced in r25726 that would cause us to write uninitialized data into buffer. diff -r c6b4a486c108 -r 780f64c1ac7e stream/pnm.c --- 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;