cvs: php4 /main SAPI.c

From: Date: Sun, 27 Aug 2000 09:48:04 +0000
Subject: cvs: php4 /main SAPI.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1406@lists.php.net to get a copy of this message
sas Sun Aug 27 02:48:04 2000 EDT Modified files: /php4/main SAPI.c Log: Fix strlcpy use at this place. Index: php4/main/SAPI.c diff -u php4/main/SAPI.c:1.84 php4/main/SAPI.c:1.85 --- php4/main/SAPI.c:1.84 Sun Aug 27 02:32:23 2000 +++ php4/main/SAPI.c Sun Aug 27 02:48:03 2000 @@ -415,8 +415,8 @@ if (newlen != 0) { newlen += sizeof("Content-type: "); newheader = emalloc(newlen); - strlcpy(newheader, "Content-type: ", newlen); - strlcpy(newheader, mimetype, newlen); + PHP_STRLCPY(newheader, "Content-type: ", newlen, sizeof("Content-type: ")-1); + strlcat(newheader, mimetype, newlen); sapi_header.header = newheader; sapi_header.header_len = newlen - 1; colon_offset = strchr(newheader, ':');

« previous php.cvs (#1406) next »