diff options
Diffstat (limited to 'source3/tdb/tdbback.c')
-rw-r--r-- | source3/tdb/tdbback.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/tdb/tdbback.c b/source3/tdb/tdbback.c index 68b6fadc88..9466c29991 100644 --- a/source3/tdb/tdbback.c +++ b/source3/tdb/tdbback.c @@ -55,7 +55,8 @@ 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; } |