Skip to content

Commit 3f7005f

Browse files
committed
Fixed issue in decode_route() when ENABLE_WARNINGS is enabled
Fixes issue #169
1 parent 9b1368d commit 3f7005f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gmime/internet-address.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646

4747
#ifdef ENABLE_WARNINGS
48-
#define w(x) x
48+
#define w(x) (x)
4949
#else
5050
#define w(x)
5151
#endif /* ENABLE_WARNINGS */
@@ -1437,7 +1437,7 @@ decode_route (const char **in)
14371437
skip_cfws (&inptr);
14381438

14391439
if (*inptr != ':') {
1440-
w(g_warning ("Invalid route domain-list, missing ':': %.*s", inptr - start, start));
1440+
w(g_warning ("Invalid route domain-list, missing ':': %.*s", inptr - *in, *in));
14411441
goto error;
14421442
}
14431443

0 commit comments

Comments
 (0)