summaryrefslogtreecommitdiffstats
path: root/src/dstring.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-08 16:18:40 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-05-08 16:18:40 -0400
commit5df27fb8b870b70d7411a4da57be668c1f73c29c (patch)
tree18de59b6e6f1b10058cb3c730b8d836bd6dc14ac /src/dstring.c
parentc5cf2cf90834f2f56b2940d2a499a1a614ebfd21 (diff)
downloadbfs-5df27fb8b870b70d7411a4da57be668c1f73c29c.tar.xz
dstring: Make dstrprintf() return dchar *
Diffstat (limited to 'src/dstring.c')
-rw-r--r--src/dstring.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dstring.c b/src/dstring.c
index b5bf3d3..86ab646 100644
--- a/src/dstring.c
+++ b/src/dstring.c
@@ -174,7 +174,7 @@ int dstrxcpy(dchar **dest, const char *src, size_t len) {
return 0;
}
-char *dstrprintf(const char *format, ...) {
+dchar *dstrprintf(const char *format, ...) {
va_list args;
va_start(args, format);
@@ -184,7 +184,7 @@ char *dstrprintf(const char *format, ...) {
return str;
}
-char *dstrvprintf(const char *format, va_list args) {
+dchar *dstrvprintf(const char *format, va_list args) {
// Guess a capacity to try to avoid reallocating
dchar *str = dstralloc(2 * strlen(format));
if (!str) {