From d541a7d2d1d42f669de1716d6bbbc2e57335e837 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sat, 21 Feb 2009 14:40:19 +0000 Subject: Change sizeof(struct_type) to sizeof(variable). Originally committed as revision 17474 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffserver.c | 2 +- libavformat/rtsp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ffserver.c b/ffserver.c index 9236050e12..927a888980 100644 --- a/ffserver.c +++ b/ffserver.c @@ -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++; diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index ac8a9e18b9..d991a9de72 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -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)); -- cgit v1.2.3