aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lib.c')
-rw-r--r--lib/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.c b/lib/lib.c
index 930f66e4..03529a22 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -445,7 +445,7 @@ int unescape2(char **c, int echo)
if (**c == 'c') return 31&*(++*c);
for (i = 0; i<4; i++) {
if (sscanf(*c, (char *[]){"0%3o%n"+!echo, "x%2x%n", "u%4x%n", "U%6x%n"}[i],
- &idx, &off))
+ &idx, &off) > 0)
{
*c += off;