aboutsummaryrefslogtreecommitdiff
path: root/strbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'strbuf.c')
-rw-r--r--strbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strbuf.c b/strbuf.c
index f17de211..54960a54 100644
--- a/strbuf.c
+++ b/strbuf.c
@@ -87,7 +87,7 @@ int strbuf_cmp(strbuf* a, strbuf* b) {
return strncmp(a->mem, b->mem, a->len);
}
-int strbuf_c(strbuf* a, char* b) {
+int strbuf_c(strbuf* a, const char* b) {
if (a == NULL || a->alloc == 0) {
ERR("a not allocated");
return -1;