diff --git a/src/text.c b/src/text.c index 0dfe5500..98248c54 100644 --- a/src/text.c +++ b/src/text.c @@ -186,7 +186,7 @@ size_t length_of_white(const char *text) while (TRUE) { if (*text == '\t') - return ++white_count; + return white_count + 1; if (*text != ' ') return white_count; diff --git a/src/utils.c b/src/utils.c index 09abe336..e5ec6337 100644 --- a/src/utils.c +++ b/src/utils.c @@ -61,7 +61,7 @@ const char *tail(const char *path) if (slash == NULL) return path; else - return ++slash; + return slash + 1; } /* Return a copy of the two given strings, welded together. */