Commit 28e714c5 authored by rbultje's avatar rbultje

Change sizeof(struct_type) to sizeof(variable).



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17474 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 593e96b7
......@@ -2654,7 +2654,7 @@ static int rtsp_parse_request(HTTPContext *c)
}
/* parse each header line */
memset(header, 0, sizeof(RTSPHeader));
memset(header, 0, sizeof(*header));
/* skip to next line */
while (*p != '\n' && *p != '\0')
p++;
......
......@@ -748,7 +748,7 @@ static void rtsp_send_cmd(AVFormatContext *s,
int content_length, line_count;
unsigned char *content = NULL;
memset(reply, 0, sizeof(RTSPHeader));
memset(reply, 0, sizeof(*reply));
rt->seq++;
av_strlcpy(buf, cmd, sizeof(buf));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment