]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/http.c
nutdec: check return value of av_new_packet()
[ffmpeg] / libavformat / http.c
index a8076b20207d667977d0522ed5d87ccf22cb6b2c..8665452c3583310830540ee425d84314c6368230 100644 (file)
@@ -322,7 +322,7 @@ static int process_line(URLContext *h, char *line, int line_count,
         while (isspace(*p))
             p++;
         if (!av_strcasecmp(tag, "Location")) {
-            strcpy(s->location, p);
+            av_strlcpy(s->location, p, sizeof(s->location));
             *new_location = 1;
         } else if (!av_strcasecmp (tag, "Content-Length") && s->filesize == -1) {
             s->filesize = strtoll(p, NULL, 10);