diff options
author | Brian Paul <[email protected]> | 2010-02-19 13:44:12 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-02-19 13:44:12 -0700 |
commit | 150cce6aef85d22b5d32fba5d27605a98be6794a (patch) | |
tree | 2d8118efb1791e7338e7914ed813855b436e8986 /src | |
parent | 78a0c353d0f87c85feaa6dcb3042fc25d424f21b (diff) |
mesa: fix snprintf() typo
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/program_parse.tab.c | 6 | ||||
-rw-r--r-- | src/mesa/shader/program_parse.y | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/shader/program_parse.tab.c b/src/mesa/shader/program_parse.tab.c index 52f60843584..5679b649749 100644 --- a/src/mesa/shader/program_parse.tab.c +++ b/src/mesa/shader/program_parse.tab.c @@ -5559,18 +5559,18 @@ make_error_string(const char *fmt, ...) va_start(args, fmt); - /* Call v_mesa_snprintf once to determine how large the final string is. Call it + /* Call vsnprintf once to determine how large the final string is. Call it * again to do the actual formatting. from the v_mesa_snprintf manual page: * * Upon successful return, these functions return the number of * characters printed (not including the trailing '\0' used to end * output to strings). */ - length = 1 + v_mesa_snprintf(NULL, 0, fmt, args); + length = 1 + vsnprintf(NULL, 0, fmt, args); str = malloc(length); if (str) { - v_mesa_snprintf(str, length, fmt, args); + vsnprintf(str, length, fmt, args); } va_end(args); diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y index 75cb4cf4799..d5fb0fac3ea 100644 --- a/src/mesa/shader/program_parse.y +++ b/src/mesa/shader/program_parse.y @@ -2609,7 +2609,7 @@ make_error_string(const char *fmt, ...) str = malloc(length); if (str) { - v_mesa_snprintf(str, length, fmt, args); + vsnprintf(str, length, fmt, args); } va_end(args); |