summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-07-27 15:30:37 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2022-07-27 15:30:37 -0300
commite6e2b766afa7d92ef38b356a745a47b2047bba07 (patch)
tree53a8b520a074f90621dc83f2ac4f3c1af90945cf /misc.c
parent2f6194a3e83d8f8b7ea3b38ccf37028592ea5710 (diff)
misc: Add `\r`, and `\n` to the list of whitespace that
`skip_whitespace()` can skip past.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 6ac35ff..af40bff 100644
--- a/misc.c
+++ b/misc.c
@@ -161,7 +161,7 @@ char *skip_whitespace(const char *str) {
if (is_empty(str)) {
return NULL;
} else {
- const size_t span = strspn(str, " \t\v");
+ const size_t span = strspn(str, " \t\v\r\n");
return (char *)&str[span];
}
}