]> granicus.if.org Git - php/commitdiff
Fixed bug #28692 (\0 in Authenticate header passed via safe_mode).
authorIlia Alshanetsky <iliaa@php.net>
Tue, 8 Jun 2004 13:23:38 +0000 (13:23 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 8 Jun 2004 13:23:38 +0000 (13:23 +0000)
main/SAPI.c

index 979b37d9c8b5ce8afe39adf058d63fd732f6b975..b1e3488f06529de829d505254de02357bedf73d1 100644 (file)
@@ -650,7 +650,7 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC)
                                                        efree(lower_temp);
                                                }
                                        }
-                                       newlen = sizeof("WWW-Authenticate: ") + result_len;
+                                       newlen = sizeof("WWW-Authenticate: ") - 1  + result_len;
                                        newheader = emalloc(newlen+1);
                                        sprintf(newheader,"WWW-Authenticate: %s", result);
                                        efree(header_line);