aboutsummaryrefslogtreecommitdiffstats
path: root/libhashsum_init_hasher_from_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhashsum_init_hasher_from_string.c')
-rw-r--r--libhashsum_init_hasher_from_string.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libhashsum_init_hasher_from_string.c b/libhashsum_init_hasher_from_string.c
index 8ff5e44..652b206 100644
--- a/libhashsum_init_hasher_from_string.c
+++ b/libhashsum_init_hasher_from_string.c
@@ -92,6 +92,8 @@ keccak(int (*initfunc)(struct libhashsum_hasher *, const struct libhashsum_kecca
break;
if (*p++ != ',')
goto einval;
+ while (*p == ' ')
+ p++;
}
if (p[1])
goto einval;
@@ -256,6 +258,8 @@ next:
if (*p == ',') {
p++;
+ while (*p == ' ')
+ p++;
goto next;
}