strncpy 27 examples/libsmbclient/get_auth_data_fn.h strncpy(pWorkgroup, workgroup, maxLenWorkgroup - 1); strncpy 28 examples/libsmbclient/get_auth_data_fn.h strncpy(pUsername, username, maxLenUsername - 1); strncpy 29 examples/libsmbclient/get_auth_data_fn.h strncpy(pPassword, password, maxLenPassword - 1); strncpy 48 examples/libsmbclient/get_auth_data_fn.h strncpy(pWorkgroup, temp, maxLenWorkgroup - 1); strncpy 61 examples/libsmbclient/get_auth_data_fn.h strncpy(pUsername, temp, maxLenUsername - 1); strncpy 74 examples/libsmbclient/get_auth_data_fn.h strncpy(pPassword, temp, maxLenPassword - 1); strncpy 77 examples/libsmbclient/get_auth_data_fn.h strncpy(workgroup, pWorkgroup, sizeof(workgroup) - 1); strncpy 78 examples/libsmbclient/get_auth_data_fn.h strncpy(username, pUsername, sizeof(username) - 1); strncpy 79 examples/libsmbclient/get_auth_data_fn.h strncpy(password, pPassword, sizeof(password) - 1); strncpy 86 examples/libsmbclient/testbrowse2.c strncpy(wrkgrp, workgroup, wrkgrplen - 1); wrkgrp[wrkgrplen - 1] = 0; strncpy 87 examples/libsmbclient/testbrowse2.c strncpy(user, username, userlen - 1); user[userlen - 1] = 0; strncpy 88 examples/libsmbclient/testbrowse2.c strncpy(passwd, password, passwdlen - 1); passwd[passwdlen - 1] = 0; strncpy 208 examples/libsmbclient/testbrowse2.c strncpy(smb_path + 6, argv[i], sizeof(smb_path) - 7); strncpy 140 examples/libsmbclient/tree.c strncpy(p->name, name, sizeof(p->name)); strncpy 168 examples/libsmbclient/tree.c strncpy(path, get_path(child), 1024); strncpy 205 examples/libsmbclient/tree.c strncpy(col1, dirp->name, 128); strncpy 217 examples/libsmbclient/tree.c strncpy(col2, (dirp->comment?dirp->comment:""), 128); strncpy 223 examples/libsmbclient/tree.c strncpy(col2, (dirp->comment?dirp->comment:""), 128); strncpy 229 examples/libsmbclient/tree.c strncpy(col2, (dirp->comment?dirp->comment:""), 128); strncpy 248 examples/libsmbclient/tree.c strncpy(path1, path, sizeof(path1)); strncpy 266 examples/libsmbclient/tree.c strncpy(col2, "Device or resource busy", sizeof(col2)); strncpy 603 examples/libsmbclient/tree.c strncpy(username, "test", unmaxlen); strncpy 604 examples/libsmbclient/tree.c strncpy(password, "test", pwmaxlen); strncpy 603 lib/popt/popt.c strncpy(te, a, alen); te += alen; strncpy 170 lib/popt/popthelp.c strncpy(le, s, slen); le[slen] = '\0'; le += strlen(le); strncpy 114 lib/util/substitute.c strncpy(ret, s, alloc_len); strncpy 538 lib/zlib/contrib/minizip/miniunz.c strncpy(filename_try, zipfilename,MAXFILENAME-1); strncpy 79 lib/zlib/contrib/minizip/minizip.c strncpy(name, f,MAXFILENAME-1); strncpy 255 lib/zlib/contrib/minizip/minizip.c strncpy(filename_try, argv[zipfilenamearg],MAXFILENAME-1); strncpy 440 lib/zlib/contrib/untgz/untgz.c strncpy(fname,buffer.header.name,SHORTNAMESIZE); strncpy 48 nsswitch/libwbclient/wbc_idmap.c strncpy(request.data.sid, sid_string, sizeof(request.data.sid)-1); strncpy 142 nsswitch/libwbclient/wbc_idmap.c strncpy(request.data.sid, sid_string, sizeof(request.data.sid)-1); strncpy 297 nsswitch/libwbclient/wbc_idmap.c strncpy(request.data.dual_idmapset.sid, sid_string, strncpy 334 nsswitch/libwbclient/wbc_idmap.c strncpy(request.data.dual_idmapset.sid, sid_string, strncpy 371 nsswitch/libwbclient/wbc_idmap.c strncpy(request.data.dual_idmapset.sid, sid_string, strncpy 408 nsswitch/libwbclient/wbc_idmap.c strncpy(request.data.dual_idmapset.sid, sid_string, strncpy 359 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.auth.user, strncpy 364 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.auth.pass, strncpy 402 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.auth_crap.user, strncpy 406 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.auth_crap.domain, strncpy 411 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.auth_crap.workstation, strncpy 564 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.logoff.user, params->username, strncpy 571 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.logoff.krb5ccname, strncpy 642 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.logoff.user, username, strncpy 647 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.logoff.krb5ccname, ccfilename, strncpy 705 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.chauthtok.user, params->account_name, strncpy 709 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.chauthtok.oldpass, strncpy 715 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.chauthtok.newpass, strncpy 777 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.chng_pswd_auth_crap.user, strncpy 781 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.chng_pswd_auth_crap.domain, strncpy 944 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.auth.user, strncpy 948 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.auth.pass, strncpy 956 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.auth.krb5_cc_type, strncpy 988 nsswitch/libwbclient/wbc_pam.c strncpy(request.data.auth.require_membership_of_sid, strncpy 148 nsswitch/libwbclient/wbc_pwd.c strncpy(request.data.username, name, sizeof(request.data.username)-1); strncpy 214 nsswitch/libwbclient/wbc_pwd.c strncpy(request.data.sid, sid_string, sizeof(request.data.sid)); strncpy 251 nsswitch/libwbclient/wbc_pwd.c strncpy(request.data.groupname, name, sizeof(request.data.groupname)-1); strncpy 581 nsswitch/libwbclient/wbc_pwd.c strncpy(request.data.username, account, sizeof(request.data.username)-1); strncpy 174 nsswitch/libwbclient/wbc_sid.c strncpy(request.data.name.dom_name, domain, strncpy 176 nsswitch/libwbclient/wbc_sid.c strncpy(request.data.name.name, name, strncpy 224 nsswitch/libwbclient/wbc_sid.c strncpy(request.data.sid, sid_string, sizeof(request.data.sid)-1); strncpy 316 nsswitch/libwbclient/wbc_sid.c strncpy(request.data.sid, sid_string, sizeof(request.data.sid)-1); strncpy 447 nsswitch/libwbclient/wbc_sid.c strncpy(request.data.sid, sid_string, sizeof(request.data.sid)-1); strncpy 542 nsswitch/libwbclient/wbc_sid.c strncpy(request.data.sid, sid_string, sizeof(request.data.sid)-1); strncpy 576 nsswitch/libwbclient/wbc_sid.c strncpy(&extra_data[extra_data_len], sid_string, strncpy 655 nsswitch/libwbclient/wbc_sid.c strncpy(request.domain_name, domain_name, strncpy 723 nsswitch/libwbclient/wbc_sid.c strncpy(request.domain_name, domain_name, strncpy 140 nsswitch/libwbclient/wbc_util.c strncpy(request.domain_name, domain, strncpy 196 nsswitch/libwbclient/wbc_util.c strncpy(request.data.winsreq, name, strncpy 229 nsswitch/libwbclient/wbc_util.c strncpy(request.data.winsreq, ip, strncpy 488 nsswitch/libwbclient/wbc_util.c strncpy(request.domain_name, domain, sizeof(request.domain_name)-1); strncpy 604 nsswitch/libwbclient/wbc_util.c strncpy(request.data.dsgetdcname.domain_name, domain, strncpy 608 nsswitch/libwbclient/wbc_util.c strncpy(request.data.dsgetdcname.site_name, site, strncpy 618 nsswitch/libwbclient/wbc_util.c strncpy(request.data.dsgetdcname.domain_guid, str, strncpy 197 nsswitch/wb_common.c strncpy(sunaddr.sun_path, path, sizeof(sunaddr.sun_path) - 1); strncpy 515 nsswitch/winbind_nss_irix.c strncpy(request->data.username, key, strncpy 520 nsswitch/winbind_nss_irix.c strncpy(request->data.groupname, key, strncpy 528 nsswitch/winbind_nss_irix.c strncpy(request->data.winsreq, key, sizeof(request->data.winsreq) - 1); strncpy 532 nsswitch/winbind_nss_irix.c strncpy(request->data.winsreq, key, sizeof(request->data.winsreq) - 1); strncpy 618 nsswitch/winbind_nss_linux.c strncpy(request.data.username, name, strncpy 891 nsswitch/winbind_nss_linux.c strncpy(request.data.groupname, name, strncpy 1044 nsswitch/winbind_nss_linux.c strncpy(request.data.username, user, strncpy 1151 nsswitch/winbind_nss_linux.c strncpy(request.data.sid, user_sid,sizeof(request.data.sid) - 1); strncpy 1202 nsswitch/winbind_nss_linux.c strncpy(request.data.name.name, name, strncpy 1267 nsswitch/winbind_nss_linux.c strncpy(request.data.sid, sid, strncpy 1324 nsswitch/winbind_nss_linux.c strncpy(request.data.sid, sid, sizeof(request.data.sid) - 1); strncpy 1363 nsswitch/winbind_nss_linux.c strncpy(request.data.sid, sid, sizeof(request.data.sid) - 1); strncpy 230 nsswitch/winbind_nss_netbsd.c strncpy(request.data.username, uname, strncpy 510 nsswitch/winbind_nss_solaris.c strncpy(request.data.winsreq, argp->key.name, sizeof(request.data.winsreq) - 1); strncpy 533 nsswitch/winbind_nss_solaris.c strncpy(request.data.winsreq, argp->key.name, sizeof(request.data.winsreq) - 1); strncpy 4207 source3/client/client.c strncpy(info.dirmask, text, i+1); strncpy 4350 source3/client/client.c strncpy(matches[0], matches[1], samelen); strncpy 1130 source3/client/clitar.c strncpy(longname, client_get_cur_dir(), namesize); strncpy 160 source3/client/smbspool.c strncpy(uri, dev_uri, sizeof(uri) - 1); strncpy 162 source3/client/smbspool.c strncpy(uri, argv[0], sizeof(uri) - 1); strncpy 138 source3/client/tree.c strncpy(p->name, name, sizeof(p->name)); strncpy 202 source3/client/tree.c strncpy(col1, dirp->name, 128); strncpy 214 source3/client/tree.c strncpy(col2, (dirp->comment?dirp->comment:""), 128); strncpy 220 source3/client/tree.c strncpy(col2, (dirp->comment?dirp->comment:""), 128); strncpy 226 source3/client/tree.c strncpy(col2, (dirp->comment?dirp->comment:""), 128); strncpy 264 source3/client/tree.c strncpy(col2, "Device or resource busy", sizeof(col2)); strncpy 599 source3/client/tree.c strncpy(username, "test", unmaxlen); strncpy 600 source3/client/tree.c strncpy(password, "test", pwmaxlen); strncpy 265 source3/client/umount.cifs.c strncpy (canonical, path, PATH_MAX); strncpy 111 source3/lib/afs.c strncpy(p, username, sizeof(clear_ticket)-PTR_DIFF(p,clear_ticket)-1); strncpy 113 source3/lib/afs.c strncpy(p, "", sizeof(clear_ticket)-PTR_DIFF(p,clear_ticket)-1); strncpy 115 source3/lib/afs.c strncpy(p, cell, sizeof(clear_ticket)-PTR_DIFF(p,clear_ticket)-1); strncpy 159 source3/lib/afs.c strncpy(p, "afs", sizeof(clear_ticket)-PTR_DIFF(p,clear_ticket)-1); strncpy 161 source3/lib/afs.c strncpy(p, "", sizeof(clear_ticket)-PTR_DIFF(p,clear_ticket)-1); strncpy 209 source3/lib/afs_settoken.c strncpy(p, cell, tmp); strncpy 136 source3/lib/ctdbd_conn.c strncpy(addr.sun_path, sockname, sizeof(addr.sun_path)); strncpy 262 source3/lib/debug.c strncpy(b, list[i], l); strncpy 76 source3/lib/ldap_escape.c strncpy (p, sub, 3); strncpy 100 source3/lib/ldb/common/ldb_dn.c strncpy(d, "\00", 3); /* escape the zero */ strncpy 285 source3/lib/substitute.c strncpy(envname,r,copylen); strncpy 300 source3/lib/substitute.c strncpy(envname,p,copylen); strncpy 386 source3/lib/substitute.c strncpy(varname, r, copylen); strncpy 397 source3/lib/substitute.c strncpy( varname, p, copylen ); strncpy 520 source3/lib/substitute.c strncpy( str, s, len ); strncpy 895 source3/lib/substitute.c strncpy( str, s, len ); strncpy 1471 source3/lib/system.c strncpy(list, extattr[t].name, extattr[t].len + 1); strncpy 1473 source3/lib/system.c strncpy(list, buf + i + 1, len); strncpy 1507 source3/lib/system.c strncpy(bp, "user.", sizeof("user.")); strncpy 1533 source3/lib/system.c strncpy(bp, "system.", sizeof("system.")); strncpy 690 source3/lib/util_str.c strncpy(dest, src, MIN(n, str_len)); strncpy 49 source3/libads/kerberos.c strncpy(prompts[0].reply->data, (const char *)data, strncpy 706 source3/libads/krb5_setpw.c strncpy((char *)prompts[0].reply->data, strncpy 126 source3/libsmb/libsmb_dir.c strncpy(dirent->name, (name?name:""), dirent->namelen + 1); strncpy 128 source3/libsmb/libsmb_dir.c strncpy(dirent->comment, (comment?comment:""), dirent->commentlen + 1); strncpy 917 source3/libsmb/libsmb_dir.c strncpy(dest->comment, src->comment, max_namebuf_len - 1); strncpy 1638 source3/libsmb/libsmb_dir.c strncpy(atimebuf, ctime(&access_time), sizeof(atimebuf) - 1); strncpy 1644 source3/libsmb/libsmb_dir.c strncpy(mtimebuf, ctime(&write_time), sizeof(mtimebuf) - 1); strncpy 791 source3/libsmb/libsmb_xattr.c strncpy(name_sandbox, attr_name, sizeof(name_sandbox) - 1); strncpy 238 source3/modules/vfs_afsacl.c strncpy(str, acl_str, MAXSIZE); strncpy 133 source3/modules/vfs_prealloc.c strncpy(fext, dot, sizeof(fext)); strncpy 187 source3/pam_smbpass/pam_smb_passwd.c strncpy( Announce, greeting, sizeof(greeting) ); strncpy 188 source3/pam_smbpass/pam_smb_passwd.c strncpy( Announce+sizeof(greeting)-1, user, strlen(user)+1 ); strncpy 107 source3/pam_smbpass/support.c strncpy(mod_format, tag, strlen(tag)+1); strncpy 387 source3/pam_smbpass/support.c strncpy( data_name, FAIL_PREFIX, sizeof(FAIL_PREFIX) ); strncpy 388 source3/pam_smbpass/support.c strncpy( data_name + sizeof(FAIL_PREFIX) - 1, name, strlen( name ) + 1 ); strncpy 440 source3/passdb/pdb_smbpasswd.c strncpy(user_name, linebuf, PTR_DIFF(p, linebuf)); strncpy 844 source3/passdb/pdb_smbpasswd.c strncpy(user_name, linebuf, PTR_DIFF(p, linebuf)); strncpy 922 source3/passdb/secrets.c strncpy(old_style_pw, data, size); strncpy 868 source3/printing/lpq_parse.c strncpy(parse_line_char, line, sizeof(parse_line_char) -1); strncpy 952 source3/printing/lpq_parse.c strncpy(parse_line_char, line, sizeof(parse_line_char) -1); strncpy 1172 source3/printing/print_iprint.c strncpy(temp->fs_user, user_name, sizeof(temp->fs_user) - 1); strncpy 1173 source3/printing/print_iprint.c strncpy(temp->fs_file, job_name, sizeof(temp->fs_file) - 1); strncpy 3474 source3/rpc_client/cli_pipe.c strncpy(addr.sun_path, socket_path, sizeof(addr.sun_path)); strncpy 1237 source3/rpc_parse/parse_prs.c strncpy(tmp_str, *str, len); strncpy 1018 source3/rpc_server/srv_pipe_hnd.c strncpy(addr.sun_path, socket_path, sizeof(addr.sun_path)); strncpy 1281 source3/rpc_server/srv_spoolss_nt.c strncpy(drivername, (const char *)data->data, len); strncpy 1384 source3/rpc_server/srv_spoolss_nt.c strncpy( drivername, (const char *)data->data, len ); strncpy 6051 source3/rpc_server/srv_spoolss_nt.c strncpy(printer->info_2->portname, qlines[0], sizeof(printer->info_2->portname)); strncpy 4079 source3/smbd/lanman.c strncpy(buf,SERVICE(snum),sizeof(buf)-1); strncpy 113 source3/smbd/mangle_hash2.c strncpy(str, key, length); strncpy 386 source3/smbd/mangle_hash2.c strncpy(extension, name+9, 3); strncpy 319 source3/utils/sharesec.c strncpy( acl_string, pacl, MIN( PTR_DIFF( end_acl, pacl ), sizeof(fstring)-1) ); strncpy 98 source3/utils/smbget.c strncpy(un, tmp, unlen-1); strncpy 99 source3/utils/smbget.c } else if(username) strncpy(un, username, unlen-1); strncpy 108 source3/utils/smbget.c strncpy(pw, pass, pwlen-1); strncpy 109 source3/utils/smbget.c } else if(password) strncpy(pw, password, pwlen-1); strncpy 111 source3/utils/smbget.c if(workgroup)strncpy(wg, workgroup, wglen-1); strncpy 213 source3/utils/smbget.c strncpy(buffer, "Unknown", sizeof(buffer)); strncpy 104 source3/web/swat.c strncpy( p, """, quote_len); strncpy 2867 source4/client/client.c strncpy(info.matches[0], info.matches[1], info.samelen); strncpy 2949 source4/client/client.c strncpy(matches[0], matches[1], samelen); strncpy 478 source4/client/mount.cifs.c strncpy(mountpassword,getenv("PASSWD"),32); strncpy 841 source4/client/smbmount.c strncpy(p, opts, sizeof(pstring) - (p - options) - 1); strncpy 93 source4/client/smbumount.c strncpy (canonical, path, PATH_MAX); strncpy 136 source4/client/tree.c strncpy(p->name, name, sizeof(p->name)); strncpy 164 source4/client/tree.c strncpy(path, get_path(child), 1024); strncpy 201 source4/client/tree.c strncpy(col1, dirp->name, 128); strncpy 213 source4/client/tree.c strncpy(col2, (dirp->comment?dirp->comment:""), 128); strncpy 219 source4/client/tree.c strncpy(col2, (dirp->comment?dirp->comment:""), 128); strncpy 225 source4/client/tree.c strncpy(col2, (dirp->comment?dirp->comment:""), 128); strncpy 243 source4/client/tree.c strncpy(path1, path, sizeof(path1)); strncpy 261 source4/client/tree.c strncpy(col2, "Device or resource busy", sizeof(col2)); strncpy 598 source4/client/tree.c strncpy(username, "test", unmaxlen); strncpy 599 source4/client/tree.c strncpy(password, "test", pwmaxlen); strncpy 246 source4/heimdal/lib/roken/resolve.c strncpy(rr->u.txt, (const char*)(p + 1), *p); strncpy 261 source4/heimdal/lib/roken/roken_gethostby.c strncpy(host, he->h_name, sizeof(host)); strncpy 185 source4/lib/ldb/common/ldb_dn.c strncpy(d, "\00", 3); /* escape the zero */ strncpy 167 source4/lib/registry/patchfile_preg.c strncpy(preg_header.hdr, "PReg", 4); strncpy 113 source4/lib/socket/socket_unix.c strncpy(srv_addr.sun_path, srv_address->addr, sizeof(srv_addr.sun_path)); strncpy 148 source4/lib/socket/socket_unix.c strncpy(my_addr.sun_path, my_address->addr, sizeof(my_addr.sun_path)); strncpy 276 source4/lib/socket/socket_unix.c strncpy(srv_addr.sun_path, dest->addr, sizeof(srv_addr.sun_path)); strncpy 672 source4/lib/wmi/wmi_wrap.c strncpy(r,name,lname+1); strncpy 4182 source4/lib/wmi/wmi_wrap.c strncpy(gv->name,name,size); strncpy 4259 source4/lib/wmi/wmi_wrap.c strncpy(buff, methods[i].ml_doc, ldoc); strncpy 4261 source4/lib/wmi/wmi_wrap.c strncpy(buff, "swig_ptr: ", 10); strncpy 68 source4/ntvfs/ipc/rap_server.c strncpy(r->out.info[j].info1.name, strncpy 349 source4/ntvfs/posix/pvfs_shortname.c strncpy(extension, name+9, 3); strncpy 148 source4/torture/basic/mangle_test.c strncpy(p, "ABCDE", 5); strncpy 51 source4/torture/basic/utable.c strncpy(fname, "\\utable\\x", sizeof(fname)-1); strncpy 108 source4/torture/basic/utable.c strncpy(fname, "\\utable\\", sizeof(fname)-1);