diff options
Diffstat (limited to 'source4/ntvfs/ipc')
-rw-r--r-- | source4/ntvfs/ipc/rap_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/ipc/rap_server.c b/source4/ntvfs/ipc/rap_server.c index 825a17fd12..b919cbcb20 100644 --- a/source4/ntvfs/ipc/rap_server.c +++ b/source4/ntvfs/ipc/rap_server.c @@ -65,7 +65,7 @@ NTSTATUS rap_netshareenum(TALLOC_CTX *mem_ctx, DEBUG(3, ("WARNING: Service [%s] disappeared after enumeration!\n", snames[i])); continue; } - strncpy(r->out.info[j].info1.share_name, + strncpy((char *)r->out.info[j].info1.share_name, snames[i], sizeof(r->out.info[0].info1.share_name)); r->out.info[i].info1.reserved1 = 0; |