]> git.ipfire.org Git - thirdparty/git.git/blobdiff - strbuf.h
refs: print error message in debug output
[thirdparty/git.git] / strbuf.h
index 96512f85b316e7f3b56df94cd1e7912dbb6020f0..76965a17d444829b4a5b5edc099d12bf1fcc7ea3 100644 (file)
--- a/strbuf.h
+++ b/strbuf.h
@@ -160,7 +160,7 @@ void strbuf_grow(struct strbuf *sb, size_t amount);
 static inline void strbuf_setlen(struct strbuf *sb, size_t len)
 {
        if (len > (sb->alloc ? sb->alloc - 1 : 0))
-               die("BUG: strbuf_setlen() beyond buffer");
+               BUG("strbuf_setlen() beyond buffer");
        sb->len = len;
        if (sb->buf != strbuf_slopbuf)
                sb->buf[len] = '\0';