pkg: use a blob buffer in pkg_t to store variable fields
[oweals/opkg-lede.git] / libbb / concat_path_file.c
index e62b99ef689a39a9bea136dfc7589e25097d8953..f0cb552d9ff4709cb173680fbf70a2c6f6f53671 100644 (file)
@@ -34,12 +34,12 @@ extern char *concat_path_file(const char *path, const char *filename)
        char *lc;
 
        if (!path)
-           path="";
+               path = "";
        lc = last_char_is(path, '/');
        while (*filename == '/')
                filename++;
-       outbuf = xmalloc(strlen(path)+strlen(filename)+1+(lc==NULL));
-       sprintf(outbuf, "%s%s%s", path, (lc==NULL)? "/" : "", filename);
+       outbuf = xmalloc(strlen(path) + strlen(filename) + 1 + (lc == NULL));
+       sprintf(outbuf, "%s%s%s", path, (lc == NULL) ? "/" : "", filename);
 
        return outbuf;
 }