File scrollkeeper-0.3.14-createdbdir.diff of Package scrollkeeper
--- libs/database.c
+++ libs/database.c
@@ -69,9 +69,10 @@
delim[0]=slash[0];
while(token != NULL) {
if (strlen(path) == 0 || ((strlen(path) == 1) && (path[0] == slash[0]))) {
- sprintf(path, "%s%s", path, token);
+ strcat(path, token);
} else {
- sprintf(path, "%s/%s", path, token);
+ strcat(path,"/");
+ strcat(path,token);
}
if (stat(path, &buf) == -1) {
if (sk_mkdir(path, options, outputprefs) != 0) {