diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-24 03:31:43 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:07 -0500 |
commit | 5d4fc1284ea662029f509a88ca49a2a5812f78f1 (patch) | |
tree | 8ff4063767688277190cc5b9428a251d0e67f6cd /source4/ntvfs | |
parent | 5c94fcab923b85c2dd75664deb8fa2819ca5ea23 (diff) | |
download | samba-5d4fc1284ea662029f509a88ca49a2a5812f78f1.tar.gz samba-5d4fc1284ea662029f509a88ca49a2a5812f78f1.tar.bz2 samba-5d4fc1284ea662029f509a88ca49a2a5812f78f1.zip |
r2580: fixed an uninitialised byte found by valgrind
(This used to be commit 0806378b0e34ba3d665a9db739539819f3f52054)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/ipc/rap_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ntvfs/ipc/rap_server.c b/source4/ntvfs/ipc/rap_server.c index 4ab1915c81..b414b40d7e 100644 --- a/source4/ntvfs/ipc/rap_server.c +++ b/source4/ntvfs/ipc/rap_server.c @@ -32,12 +32,12 @@ NTSTATUS rap_netshareenum(struct smbsrv_request *req, r->out.info = talloc_array_p(req, union rap_shareenum_info, 2); - strncpy(r->out.info[0].info1.name, "C$", 12); + strncpy(r->out.info[0].info1.name, "C$", sizeof(r->out.info[0].info1.name)); r->out.info[0].info1.pad = 0; r->out.info[0].info1.type = 0; r->out.info[0].info1.comment = talloc_strdup(req, "Bla"); - strncpy(r->out.info[1].info1.name, "IPC$", 12); + strncpy(r->out.info[1].info1.name, "IPC$", sizeof(r->out.info[0].info1.name)); r->out.info[1].info1.pad = 0; r->out.info[1].info1.type = 1; r->out.info[1].info1.comment = talloc_strdup(req, "Blub"); |