diff options
author | Simo Sorce <idra@samba.org> | 2003-10-06 01:38:46 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2003-10-06 01:38:46 +0000 |
commit | b1f610ebb1ba1e6ae0f0e9fbbc703f6a4af68b67 (patch) | |
tree | 3a116be18471c30bdf79e89876cfb0529fd35162 /source3/tdb | |
parent | 487130a6df828c21916ccddc6d3aa66169cd8bb2 (diff) | |
download | samba-b1f610ebb1ba1e6ae0f0e9fbbc703f6a4af68b67.tar.gz samba-b1f610ebb1ba1e6ae0f0e9fbbc703f6a4af68b67.tar.xz samba-b1f610ebb1ba1e6ae0f0e9fbbc703f6a4af68b67.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
(This used to be commit c78f2d0bd15ecd2ba643bb141cc35a3405787aa1)
Diffstat (limited to 'source3/tdb')
-rw-r--r-- | source3/tdb/tdbback.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/tdb/tdbback.c b/source3/tdb/tdbback.c index 9466c299910..68b6fadc882 100644 --- a/source3/tdb/tdbback.c +++ b/source3/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; } |