summaryrefslogtreecommitdiff
path: root/src/pacman
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman')
-rw-r--r--src/pacman/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index d42e27b8..ec2d3d2b 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -299,6 +299,7 @@ size_t strtrim(char *str)
size_t len = strlen(pch);
if(len) {
memmove(str, pch, len + 1);
+ pch = str;
} else {
*str = '\0';
}