X-Git-Url: https://git.lttng.org/?p=ust.git;a=blobdiff_plain;f=snprintf%2Fvfprintf.c;fp=snprintf%2Fvfprintf.c;h=d4953be28dca8f60024efabacda83e14cba4c157;hp=4fc86bf08d8ded480ae73558f77e8fe8e2792a51;hb=e5bc3b0f4d6c0407492ebdea863483925393e1bc;hpb=015d08b66af5ebd10665aa90f5426930e56c540d diff --git a/snprintf/vfprintf.c b/snprintf/vfprintf.c index 4fc86bf..d4953be 100644 --- a/snprintf/vfprintf.c +++ b/snprintf/vfprintf.c @@ -399,7 +399,7 @@ int ust_safe_vfprintf(LFILE *fp, const char *fmt0, va_list ap) */ for (;;) { cp = fmt; - while ((n = mbrtowc(&wc, fmt, MB_CUR_MAX, &ps)) > 0) { + while ((n = ust_safe_mbrtowc(&wc, fmt, MB_CUR_MAX, &ps)) > 0) { fmt += n; if (wc == '%') { fmt--; @@ -1071,7 +1071,7 @@ __find_arguments(const char *fmt0, va_list ap, union arg **argtable, */ for (;;) { cp = fmt; - while ((n = mbrtowc(&wc, fmt, MB_CUR_MAX, &ps)) > 0) { + while ((n = ust_safe_mbrtowc(&wc, fmt, MB_CUR_MAX, &ps)) > 0) { fmt += n; if (wc == '%') { fmt--;