diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-03-16 19:09:27 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-03-16 19:09:27 -0400 |
commit | 9e687f4f26adf6cc965d4b45be7953b76c418659 (patch) | |
tree | d3cca01b5eeb75520b5e9c32678cb1aca01fb6dc | |
parent | 951f35b060bec53cba93252cc5c7aea21568594d (diff) | |
download | expac-9e687f4f26adf6cc965d4b45be7953b76c418659.tar.xz |
fix end of string calculation
-rw-r--r-- | expac.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |