summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/network.c2
-rw-r--r--main/php_version.h6
2 files changed, 5 insertions, 3 deletions
diff --git a/main/network.c b/main/network.c
index 59ce12ef2..5e44b0e6a 100644
--- a/main/network.c
+++ b/main/network.c
@@ -989,6 +989,7 @@ PHPAPI char *php_socket_strerror(long err, char *buf, size_t bufsize)
buf = estrdup(errstr);
} else {
strncpy(buf, errstr, bufsize);
+ buf[bufsize?(bufsize-1):0] = 0;
}
return buf;
#else
@@ -1013,6 +1014,7 @@ PHPAPI char *php_socket_strerror(long err, char *buf, size_t bufsize)
buf = estrdup(sysbuf);
} else {
strncpy(buf, sysbuf, bufsize);
+ buf[bufsize?(bufsize-1):0] = 0;
}
if (free_it) {
diff --git a/main/php_version.h b/main/php_version.h
index 7603271ce..8d3d5b9e6 100644
--- a/main/php_version.h
+++ b/main/php_version.h
@@ -2,8 +2,8 @@
/* edit configure.in to change version number */
#define PHP_MAJOR_VERSION 5
#define PHP_MINOR_VERSION 4
-#define PHP_RELEASE_VERSION 31
+#define PHP_RELEASE_VERSION 32
#define PHP_EXTRA_VERSION ""
-#define PHP_VERSION "5.4.31"
-#define PHP_VERSION_ID 50431
+#define PHP_VERSION "5.4.32"
+#define PHP_VERSION_ID 50432