summaryrefslogtreecommitdiff
path: root/source3/tdb/tdbbackup.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/tdb/tdbbackup.c')
-rw-r--r--source3/tdb/tdbbackup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/tdb/tdbbackup.c b/source3/tdb/tdbbackup.c
index 27cdd32835..48c4272d33 100644
--- a/source3/tdb/tdbbackup.c
+++ b/source3/tdb/tdbbackup.c
@@ -66,7 +66,8 @@ static char *add_suffix(const char *name, const char *suffix)
fprintf(stderr,"Out of memory!\n");
exit(1);
}
- snprintf(ret, len, "%s%s", name, suffix);
+ strncpy(ret, name, len);
+ strncat(ret, suffix, len);
return ret;
}