diff http.c @ 2189:da71207a7cf1 libavformat

use new string functions based on patch by Reimar D?ffinger
author mru
date Sat, 23 Jun 2007 23:10:32 +0000
parents c770b9a1f78f
children 5ce5fad0dfac
line wrap: on
line diff
--- a/http.c	Sat Jun 23 12:49:36 2007 +0000
+++ b/http.c	Sat Jun 23 23:10:32 2007 +0000
@@ -23,6 +23,7 @@
 #include "network.h"
 
 #include "base64.h"
+#include "avstring.h"
 
 /* XXX: POST protocol is not completely implemented because ffmpeg uses
    only a subset of it. */
@@ -72,7 +73,7 @@
     if (port > 0) {
         snprintf(hoststr, sizeof(hoststr), "%s:%d", hostname, port);
     } else {
-        pstrcpy(hoststr, sizeof(hoststr), hostname);
+        av_strlcpy(hoststr, hostname, sizeof(hoststr));
     }
 
     if (use_proxy) {