summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;