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 | c78f2d0bd15ecd2ba643bb141cc35a3405787aa1 (patch) | |
tree | 8a29f6f2f0aa220637bf3297abdb95a110120cba /source/tdb | |
parent | 096b997588880991af8e07034cc4f041daa87b97 (diff) | |
download | samba-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.c | 3 |
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; } |