summaryrefslogtreecommitdiff
path: root/sapi/nsapi
diff options
context:
space:
mode:
authorUwe Schindler <thetaphi@php.net>2007-03-05 16:29:18 +0000
committerUwe Schindler <thetaphi@php.net>2007-03-05 16:29:18 +0000
commitf34ec4f606a14d7457db3ab65b7f1b38cd70f19d (patch)
treebf7ed2037f6a4de341bc03f9348919cb0e5b8220 /sapi/nsapi
parenta252c79d53fdaf3d3739d3ee395986c03dfa6893 (diff)
downloadphp-git-f34ec4f606a14d7457db3ab65b7f1b38cd70f19d.tar.gz
snprintf patch
Diffstat (limited to 'sapi/nsapi')
-rw-r--r--sapi/nsapi/nsapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/nsapi/nsapi.c b/sapi/nsapi/nsapi.c
index 9e0bd47ffe..c2636ff332 100644
--- a/sapi/nsapi/nsapi.c
+++ b/sapi/nsapi/nsapi.c
@@ -642,7 +642,7 @@ static void sapi_nsapi_register_server_variables(zval *track_vars_array TSRMLS_D
nsapi_free(value);
}
- snprintf(buf, sizeof(buf), "%d", conf_getglobals()->Vport);
+ snprintf(buf, NS_BUF_SIZE, "%d", conf_getglobals()->Vport);
php_register_variable("SERVER_PORT", buf, track_vars_array TSRMLS_CC);
php_register_variable("SERVER_NAME", conf_getglobals()->Vserver_hostname, track_vars_array TSRMLS_CC);
@@ -695,7 +695,7 @@ static void sapi_nsapi_register_server_variables(zval *track_vars_array TSRMLS_D
/* special variables in error mode */
if (rc->http_error) {
- snprintf(buf, sizeof(buf), "%d", rc->http_error);
+ snprintf(buf, NS_BUF_SIZE, "%d", rc->http_error);
php_register_variable("ERROR_TYPE", buf, track_vars_array TSRMLS_CC);
}
}