]> granicus.if.org Git - php/commitdiff
One more strcpy. (Thanks Stas)
authorIlia Alshanetsky <iliaa@php.net>
Thu, 22 Feb 2007 00:44:08 +0000 (00:44 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 22 Feb 2007 00:44:08 +0000 (00:44 +0000)
ext/standard/url_scanner.c

index 8c4d425c92d533cc8c57aff8f3c30ccb64cb3e8b..60f20c59f5a30906c0abb849af47cbcdebb1ee73 100644 (file)
@@ -203,7 +203,7 @@ char *url_adapt(const char *src, size_t srclen, const char *data, size_t *newlen
                                                        maxl+=l;
                                                        out=realloc(out,maxl);
                                                        outp=out+*newlen;
-                                                       strcpy(outp,p);
+                                                       strlcpy(outp,p,maxl);
                                                        outp+=l;
                                                        *newlen+=l;
                                                        efree(p);