diff options
| author | Volker Lendecke <vl@samba.org> | 2013-11-10 11:57:37 +0100 |
|---|---|---|
| committer | Ira Cooper <ira@samba.org> | 2013-11-11 21:04:09 +0100 |
| commit | 2a73a4985eb4a7fcd5dc31aee66dfcd0d305d94b (patch) | |
| tree | 5e4c2fdb5b830805a874f61db27fddd6664f725f /source3/lib | |
| parent | a60f513e896c35bf21eb54456f38771152611e81 (diff) | |
| download | samba-2a73a4985eb4a7fcd5dc31aee66dfcd0d305d94b.tar.gz samba-2a73a4985eb4a7fcd5dc31aee66dfcd0d305d94b.tar.xz samba-2a73a4985eb4a7fcd5dc31aee66dfcd0d305d94b.zip | |
smbd: Fix CID 1035366 Buffer not null terminated
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Diffstat (limited to 'source3/lib')
| -rw-r--r-- | source3/lib/conn_tdb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/conn_tdb.c b/source3/lib/conn_tdb.c index 8c21b6f509..2169756c79 100644 --- a/source3/lib/conn_tdb.c +++ b/source3/lib/conn_tdb.c @@ -116,12 +116,12 @@ static int traverse_tcon_fn(struct smbXsrv_tcon_global0 *global, key.pid = data.pid = global->server_id; key.cnum = data.cnum = global->tcon_global_id; - strncpy(key.name, global->share_name, sizeof(key.name)); - strncpy(data.servicename, global->share_name, sizeof(data.servicename)); + fstrcpy(key.name, global->share_name); + fstrcpy(data.servicename, global->share_name); data.uid = sess.uid; data.gid = sess.gid; - strncpy(data.addr, sess.addr, sizeof(data.addr)); - strncpy(data.machine, sess.machine, sizeof(data.machine)); + fstrcpy(data.addr, sess.addr); + fstrcpy(data.machine, sess.machine); data.start = nt_time_to_unix(global->creation_time); state->count++; |
