pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-10-21
2014-10-21 01:35:01 by Martin Nilsson <nilsson@opera.com>
7f102ead01333cf6bfa9536005a5d89183cea0ee (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
8.1
snprintf is used lower cased in several places. Use snprintf instead of SNPRINTF.
3073:
break; } /* FIXME: Field lengths and precision. */
-
if ((bytes =
SNPRINTF
(NULL, 0, nfmt, val))) {
+
if ((bytes =
snprintf
(NULL, 0, nfmt, val))) {
p_wchar0 *p = string_builder_allocate(s, bytes, 0);
-
size_t check =
SNPRINTF
((char*)p, bytes+1, nfmt, val);
+
size_t check =
snprintf
((char*)p, bytes+1, nfmt, val);
if (check != bytes) { Pike_fatal("string_builder_vsprintf(): snprintf(\"%s\", %f) " "is not trustworthy: "