summaryrefslogtreecommitdiff
path: root/ext/mhash/mhash.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mhash/mhash.c')
-rw-r--r--ext/mhash/mhash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mhash/mhash.c b/ext/mhash/mhash.c
index 2722ffa23c..3387d44b15 100644
--- a/ext/mhash/mhash.c
+++ b/ext/mhash/mhash.c
@@ -83,7 +83,7 @@ PHP_MINFO_FUNCTION(mhash)
{
char version[32];
- sprintf(version,"%d", MHASH_API_VERSION);
+ snprintf(version, sizeof(version), "%d", MHASH_API_VERSION);
php_info_print_table_start();
php_info_print_table_row(2, "MHASH support", "Enabled");