diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-05-29 01:02:02 -0400 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-05-29 01:02:02 -0400 |
commit | 7410b071bd7104a911e1b7e813c7677ee72c7cb1 (patch) | |
tree | bc44a6b7052ebcff7648557af8a5c260bbcbe87e | |
parent | d35736c77a90041ffc456462320f9a03d7588c7d (diff) |
fixed freenext bug
the function in its original form meant that multbreak wouldn't check
the node following the freed node like others.
-rw-r--r-- | badroff.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -136,7 +136,7 @@ static llnode* freenext(llnode* node){ free(tmp->str); free(tmp); if (tmp == node) return NULL; - return node->next; + return node; } static void multbreak(sb* buffer, size_t start, size_t len, llnode** tail, size_t* ct){ |