summaryrefslogtreecommitdiffstats
path: root/src/dstring.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-09-27 12:11:15 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-09-27 12:12:46 -0400
commit52de184ba28551734e1cb13233588504ab5f62ec (patch)
tree5b3d417354e7880b97507d1e4cf01c200f6cf24f /src/dstring.c
parentb395bb33e6f7d875307b18a4f9318ed0d34934ca (diff)
downloadbfs-52de184ba28551734e1cb13233588504ab5f62ec.tar.xz
Formatting fixes
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 ef4e733..f947741 100644
--- a/src/dstring.c
+++ b/src/dstring.c
@@ -169,7 +169,7 @@ char *dstrprintf(const char *format, ...) {
char *dstrvprintf(const char *format, va_list args) {
// Guess a capacity to try to avoid reallocating
- dchar *str = dstralloc(2*strlen(format));
+ dchar *str = dstralloc(2 * strlen(format));
if (!str) {
return NULL;
}
@@ -195,7 +195,7 @@ int dstrcatf(dchar **str, const char *format, ...) {
int dstrvcatf(dchar **str, const char *format, va_list args) {
// Guess a capacity to try to avoid calling vsnprintf() twice
size_t len = dstrlen(*str);
- dstreserve(str, len + 2*strlen(format));
+ dstreserve(str, len + 2 * strlen(format));
size_t cap = dstrheader(*str)->capacity;
va_list copy;