diff options
author | Sascha Schumann <sas@php.net> | 2003-06-28 12:29:26 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2003-06-28 12:29:26 +0000 |
commit | a397508392ff61922505e0e67c52e1b2efd172f5 (patch) | |
tree | f5f725e2f01c944dd01555c544c13fbea1499898 | |
parent | 766c7f9c82a52ccc75b13bd8b64a3c480b70f19c (diff) | |
download | php-git-a397508392ff61922505e0e67c52e1b2efd172f5.tar.gz |
MFB snprintf test
-rw-r--r-- | acinclude.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 356fe1e441..68590a0e9d 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1186,7 +1186,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); |