aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--LICENSE2
-rw-r--r--libhashsum_init_hasher_from_string.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/LICENSE b/LICENSE
index fccd785..f930ea6 100644
--- a/LICENSE
+++ b/LICENSE
@@ -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;
}