From 8f9de43ff27baf20547cbc25d3472b13fc49c24d Mon Sep 17 00:00:00 2001 From: "josh.macdonald" Date: Fri, 14 Dec 2007 11:24:41 +0000 Subject: Fix another snprintf issue. (Wish I had "patch" on my cygwin box... Wish I wasn't using a Cygwin box for dev purposes.) --- xdelta3/xdelta3-main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xdelta3') diff --git a/xdelta3/xdelta3-main.h b/xdelta3/xdelta3-main.h index 4645c8f..9ce7de1 100644 --- a/xdelta3/xdelta3-main.h +++ b/xdelta3/xdelta3-main.h @@ -1153,7 +1153,7 @@ snprintf_func (char *str, int n, char *fmt, ...) * VC(UT "trying to be portable: %d\n", x)VE; */ #define SNPRINTF_BUFSIZE 1024 -#define VC do { if (((ret = snprintf +#define VC do { if (((ret = snprintf_func #define UT (char*)xfile->snprintf_buf, SNPRINTF_BUFSIZE, #define VE ) >= SNPRINTF_BUFSIZE \ && (ret = main_print_overflow(ret)) != 0) \ -- cgit v1.2.3