diff options
-rw-r--r-- | LICENSE | 2 | ||||
-rw-r--r-- | libhashsum_init_hasher_from_string.c | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -1,6 +1,6 @@ ISC License -© 2024 Mattias Andrée <maandree@kth.se> +© 2024 Mattias Andrée <m@maandree.se> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above 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; } |