]> git.kaiwu.me - klib.git/commitdiff
revert a change to ks_resize()
authorHeng Li <lh3@me.com>
Wed, 24 Jul 2013 15:12:19 +0000 (11:12 -0400)
committerHeng Li <lh3@me.com>
Wed, 24 Jul 2013 15:12:19 +0000 (11:12 -0400)
due to a mistaken merge

kstring.h

index 1145c48ae4e919bd411950d6b5b3d7979fc9c9cc..8671ba6d0e33b58c2df5a1fb8b9aed912a382ef6 100644 (file)
--- a/kstring.h
+++ b/kstring.h
@@ -101,7 +101,6 @@ static inline int ks_resize(kstring_t *s, size_t size)
                else
                        return -1;
        }
-       if (s->l < s->m) s->s[s->l] = '\0';
        return 0;
 }