summaryrefslogtreecommitdiffstats
path: root/source/tdb
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2003-10-06 01:38:46 +0000
committerSimo Sorce <idra@samba.org>2003-10-06 01:38:46 +0000
commitc78f2d0bd15ecd2ba643bb141cc35a3405787aa1 (patch)
tree8a29f6f2f0aa220637bf3297abdb95a110120cba /source/tdb
parent096b997588880991af8e07034cc4f041daa87b97 (diff)
downloadsamba-c78f2d0bd15ecd2ba643bb141cc35a3405787aa1.tar.gz
samba-c78f2d0bd15ecd2ba643bb141cc35a3405787aa1.tar.xz
samba-c78f2d0bd15ecd2ba643bb141cc35a3405787aa1.zip
split some security related functions in their own files.
(no need to include all of smbd files to use some basic sec functions) also minor compile fixes couldn't compile to test these due to some kerberos problems wirh 3.0, but on HEAD they're working well, so I suppose it's ok to commit
Diffstat (limited to 'source/tdb')
-rw-r--r--source/tdb/tdbback.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/tdb/tdbback.c b/source/tdb/tdbback.c
index 9466c299910..68b6fadc882 100644
--- a/source/tdb/tdbback.c
+++ b/source/tdb/tdbback.c
@@ -55,8 +55,7 @@ char *add_suffix(const char *name, const char *suffix)
fprintf(stderr,"Out of memory!\n");
exit(1);
}
- strncpy(ret, name, len);
- strncat(ret, suffix, len);
+ snprintf(ret, len, "%s%s", name, suffix);
return ret;
}