summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-04-27 10:10:35 -0400
committerDave Reisner <dreisner@archlinux.org>2014-04-27 10:10:35 -0400
commit7a7340505092c3b61d9a084a11f6ac895481c593 (patch)
tree77eb96feefa0c4f4b76db7a36ff7b70648150965
parent9e687f4f26adf6cc965d4b45be7953b76c418659 (diff)
downloadexpac-7a7340505092c3b61d9a084a11f6ac895481c593.tar.xz
restore missing pointer increment when printing escapes
Fixes regression caused by refactoring in 257d1e7845, and GHI#16.
-rw-r--r--expac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/expac.c b/expac.c
index ddcb83b..0c1a2e0 100644
--- a/expac.c
+++ b/expac.c
@@ -627,6 +627,7 @@ static int print_pkg(alpm_pkg_t *pkg, const char *format) {
} else if (*f == '\\') {
char esc[3] = { f[0], f[1], '\0' };
out += print_escaped(esc);
+ ++f;
} else {
fputc(*f, stdout);
out++;