diff options
-rw-r--r-- | src/libnpass/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libnpass/util.c b/src/libnpass/util.c index 7f2f488..3b5e052 100644 --- a/src/libnpass/util.c +++ b/src/libnpass/util.c @@ -69,5 +69,6 @@ void util_strtrim(char *s) if (!isspace(*s)) rend = s; - rend[1] = '\0'; + if (*rend) + rend[1] = '\0'; } |