]> Sergey Matveev's repositories - bfs.git/blobdiff - src/dstring.c
Formatting fixes
[bfs.git] / src / dstring.c
index ef4e733323fdbc48de27212711ee0b27b10ce30e..f94774126b5140992b1b81589ca1b1327eb5ee11 100644 (file)
@@ -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;