diff options
author | Sascha Schumann <sas@php.net> | 2003-06-28 12:29:43 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2003-06-28 12:29:43 +0000 |
commit | 423c16befd0dfe76e688e92ed8bb9d8a3584f7d6 (patch) | |
tree | 3938c16b8816ce6ea41735ec103aa5f8b57086b0 /acinclude.m4 | |
parent | 5ecc91c27d1faa7b1917241c71f5f9f82746f985 (diff) | |
download | php-git-423c16befd0dfe76e688e92ed8bb9d8a3584f7d6.tar.gz |
MFB snprintf test
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index ae39f130cb..0949e4b437 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1119,7 +1119,9 @@ main() { int res = 0; res = res || (snprintf(buf, 2, "marcus") != 6); res = res || (buf[1] != '\0'); - res = res || (snprintf(buf, 0, "boerger") != 7); + /* Implementations may consider this as an encoding error */ + snprintf(buf, 0, "boerger"); + /* However, they MUST ignore the pointer */ res = res || (buf[0] != 'm'); res = res || (snprintf(NULL, 0, "boerger") != 7); res = res || (snprintf(buf, sizeof(buf), "%f", 0.12345678) != 8); |