summaryrefslogtreecommitdiff
path: root/ext/pspell
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2007-02-24 02:17:47 +0000
committerMarcus Boerger <helly@php.net>2007-02-24 02:17:47 +0000
commit50ea26760da4e0fcf4980e739e1d0ed520de8d59 (patch)
tree888a32ce58864f5318a7f1072f8526c6a99212f9 /ext/pspell
parent3e262bd36989898ac01224f0a987e79f44d25b31 (diff)
downloadphp-git-50ea26760da4e0fcf4980e739e1d0ed520de8d59.tar.gz
- Avoid sprintf, even when checked copy'n'paste or changes lead to errors
Diffstat (limited to 'ext/pspell')
-rw-r--r--ext/pspell/pspell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pspell/pspell.c b/ext/pspell/pspell.c
index c9e5b806a2..fc8f2937cc 100644
--- a/ext/pspell/pspell.c
+++ b/ext/pspell/pspell.c
@@ -783,7 +783,7 @@ static PHP_FUNCTION(pspell_config_ignore)
convert_to_long_ex(pignore);
ignore = Z_LVAL_PP(pignore);
- sprintf(ignore_str, "%ld", ignore);
+ snprintf(ignore_str, sizeof(ignore_str), "%ld", ignore);
pspell_config_replace(config, "ignore", ignore_str);
RETURN_TRUE;