diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-03-11 00:01:54 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-03-11 00:01:54 +0000 |
commit | ec4f138436f4754aa5c991b6f102b1e070fd1bb7 (patch) | |
tree | 0988fdad57b5e857ad03005157fd6bccd279783e | |
parent | 0843c37abd0a1520fc3117f91fc6284d9475c87e (diff) | |
download | samba-ec4f138436f4754aa5c991b6f102b1e070fd1bb7.tar.gz samba-ec4f138436f4754aa5c991b6f102b1e070fd1bb7.tar.bz2 samba-ec4f138436f4754aa5c991b6f102b1e070fd1bb7.zip |
a bit more portability for tdbbackup
(This used to be commit 6edb5bea5f6dcbabe29f772c7ad7bcaaf2a72d53)
-rw-r--r-- | source3/tdb/tdbbackup.c | 3 |
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; } |