summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-03-16 19:09:27 -0400
committerDave Reisner <dreisner@archlinux.org>2014-03-16 19:09:27 -0400
commit9e687f4f26adf6cc965d4b45be7953b76c418659 (patch)
treed3cca01b5eeb75520b5e9c32678cb1aca01fb6dc
parent951f35b060bec53cba93252cc5c7aea21568594d (diff)
downloadexpac-9e687f4f26adf6cc965d4b45be7953b76c418659.tar.xz
fix end of string calculation
-rw-r--r--expac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/expac.c b/expac.c
index 0c6250e..ddcb83b 100644
--- a/expac.c
+++ b/expac.c
@@ -497,7 +497,7 @@ static int print_pkg(alpm_pkg_t *pkg, const char *format) {
char fmt[64], buf[64];
int len, out = 0;
- end = format + strlen(format) - 1;
+ end = format + strlen(format);
for (f = format; f < end; f++) {
len = 0;