From 4e2438f6e7f39eec105f33d5708a2cfa49117246 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 30 Nov 2010 14:27:57 -0500 Subject: fix bug in verify_format --- expac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/expac.c b/expac.c index 16d84b6..1e84d85 100644 --- a/expac.c +++ b/expac.c @@ -437,7 +437,7 @@ int verify_format_string(const char *format) { if (*p == '%' && !strchr(FORMAT_TOKENS, *++p)) { fprintf(stderr, "error: bad token in format string: %%%c\n", *p); return(1); - } else if (*p == '\\' && !strchr(ESCAPE_TOKENS, *p)) { + } else if (*p == '\\' && !strchr(ESCAPE_TOKENS, *++p)) { fprintf(stderr, "error: bad token in format string: \\%c\n", *p); return(1); } @@ -476,7 +476,7 @@ int main(int argc, char *argv[]) { for (i = targets; i; i = alpm_list_next(i)) { ret += print_pkg(dblist, alpm_list_getdata(i), format); } - ret = !!ret; + ret = !!ret; /* clamp to zero/one */ if (freelist) { alpm_list_free(dblist); -- cgit v1.2.3-70-g09d2