From 9e687f4f26adf6cc965d4b45be7953b76c418659 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 16 Mar 2014 19:09:27 -0400 Subject: fix end of string calculation --- expac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-54-g00ecf