Skip to content

Commit

Permalink
fix end of string calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
falconindy committed Mar 16, 2014
1 parent 951f35b commit 9e687f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9e687f4

Please sign in to comment.