diff options
| author | Marcus Boerger <helly@php.net> | 2007-02-24 02:17:47 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2007-02-24 02:17:47 +0000 |
| commit | 50ea26760da4e0fcf4980e739e1d0ed520de8d59 (patch) | |
| tree | 888a32ce58864f5318a7f1072f8526c6a99212f9 /ext/mhash | |
| parent | 3e262bd36989898ac01224f0a987e79f44d25b31 (diff) | |
| download | php-git-50ea26760da4e0fcf4980e739e1d0ed520de8d59.tar.gz | |
- Avoid sprintf, even when checked copy'n'paste or changes lead to errors
Diffstat (limited to 'ext/mhash')
| -rw-r--r-- | ext/mhash/mhash.c | 2 |
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"); |
