Branch: Tag:

2014-10-21

2014-10-21 01:35:01 by Martin Nilsson <nilsson@opera.com>

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: "