--- src/pacman/query.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pacman/query.c b/src/pacman/query.c index d882e5a..7381c4e 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -58,7 +58,7 @@ static int search_path(char **filename, struct stat *bufptr) /* strip the trailing slash if one exists */ while(path[plen - 1] == '/') { - path[--plen] = '\0'; + path[--plen] = '\0'; } fullname = malloc(plen + flen + 2); @@ -144,7 +144,7 @@ static int query_fileowner(alpm_list_t *targets) /* trailing '/' causes lstat to dereference directory symlinks */ len = strlen(filename) - 1; - while(len > 0 && filename[len] == '/'){ + while(len > 0 && filename[len] == '/') { filename[len--] = '\0'; } -- 1.7.11.4