Use safer string functions

This commit is contained in:
Mukund Sivaraman committed 2009-10-02 15:21:42 +05:30
1 parent 323a4d0147
commit 931b038b27
2 files changed
+15 -8

No files matched your search

+1 -2
View File
@@ -669,7 +669,6 @@ BAD_REQUEST_ERROR:
safefree (url);
free_request_struct (request);
return NULL;
#endif
}
@@ -1000,7 +999,7 @@ write_via_header (int fd, hashmap_t hashofheaders,
if (config.via_proxy_name) {
strlcpy (hostname, config.via_proxy_name, sizeof (hostname));
} else if (gethostname (hostname, sizeof (hostname)) < 0) {
strcpy (hostname, "unknown");
strlcpy (hostname, "unknown", 512);
}
/*