summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-03-11 00:01:54 +0000
committerAndrew Tridgell <tridge@samba.org>2002-03-11 00:01:54 +0000
commitec4f138436f4754aa5c991b6f102b1e070fd1bb7 (patch)
tree0988fdad57b5e857ad03005157fd6bccd279783e /source3
parent0843c37abd0a1520fc3117f91fc6284d9475c87e (diff)
downloadsamba-ec4f138436f4754aa5c991b6f102b1e070fd1bb7.tar.gz
samba-ec4f138436f4754aa5c991b6f102b1e070fd1bb7.tar.bz2
samba-ec4f138436f4754aa5c991b6f102b1e070fd1bb7.zip
a bit more portability for tdbbackup
(This used to be commit 6edb5bea5f6dcbabe29f772c7ad7bcaaf2a72d53)
Diffstat (limited to 'source3')
-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;
}