strncpy 176 arch/x86/ia32/ia32_aout.c strncpy(dump.u_comm, current->comm, sizeof(current->comm)); strncpy 820 arch/x86/ia32/sys_ia32.c strncpy(lastcomm, me->comm, sizeof(lastcomm)); strncpy 807 arch/x86/kernel/cpu/mcheck/mce_64.c strncpy(trigger, buf, sizeof(trigger)); strncpy 772 arch/x86/kernel/e820.c strncpy(name, r->name, sizeof(name) - 1); strncpy 817 arch/x86/kernel/e820.c strncpy(r->name, name, sizeof(r->name) - 1); strncpy 372 block/blktrace.c strncpy(buts->name, name, BLKTRACE_BDEV_SIZE); strncpy 781 block/bsg.c strncpy(bd->name, rq->bsg_dev.class_dev->bus_id, sizeof(bd->name) - 1); strncpy 197 block/elevator.c strncpy(chosen_elevator, str, sizeof(chosen_elevator) - 1); strncpy 1173 block/elevator.c strncpy(elevator_name, name, sizeof(elevator_name) - 1); strncpy 59 fs/afs/cache.c strncpy(ccell->name, cell->name, sizeof(ccell->name)); strncpy 204 fs/autofs4/waitq.c strncpy(p, dentry->d_name.name, dentry->d_name.len); strncpy 209 fs/autofs4/waitq.c strncpy(p, tmp->d_name.name, tmp->d_name.len); strncpy 505 fs/befs/btree.c strncpy(keybuf, keystart, keylen); strncpy 380 fs/befs/linuxvfs.c strncpy(befs_ino->i_data.symlink, raw_inode->data.symlink, strncpy 117 fs/binfmt_aout.c strncpy(dump.u_comm, current->comm, sizeof(dump.u_comm)); strncpy 1390 fs/binfmt_elf.c strncpy(psinfo->pr_fname, p->comm, sizeof(psinfo->pr_fname)); strncpy 1411 fs/binfmt_elf_fdpic.c strncpy(psinfo->pr_fname, p->comm, sizeof(psinfo->pr_fname)); strncpy 126 fs/char_dev.c strncpy(cd->name,name, 64); strncpy 76 fs/cifs/cifs_dfs_ref.c strncpy(UNC+1, node_name, len); strncpy 80 fs/cifs/cifs_dfs_ref.c strncpy(UNC, node_name, len); strncpy 152 fs/cifs/cifs_dfs_ref.c strncpy(mountdata, sb_mountdata, 5); strncpy 293 fs/cifs/cifsencrypt.c strncpy(password_with_pad, ses->password, CIFS_ENCPWD_SIZE); strncpy 125 fs/cifs/cifsfs.c strncpy(cifs_sb->mountdata, data, len + 1); strncpy 107 fs/cifs/cifssmb.c strncpy(*dst, src, plen); strncpy 490 fs/cifs/cifssmb.c strncpy(pSMB->DialectsArray+count, protocols[i].name, 16); strncpy 874 fs/cifs/cifssmb.c strncpy(pSMB->FileName, fileName, name_len); strncpy 946 fs/cifs/cifssmb.c strncpy(pSMB->fileName, fileName, name_len); strncpy 991 fs/cifs/cifssmb.c strncpy(pSMB->DirName, dirName, name_len); strncpy 1034 fs/cifs/cifssmb.c strncpy(pSMB->DirName, name, name_len); strncpy 1083 fs/cifs/cifssmb.c strncpy(pSMB->FileName, name, name_len); strncpy 1248 fs/cifs/cifssmb.c strncpy(pSMB->fileName, fileName, name_len); strncpy 1356 fs/cifs/cifssmb.c strncpy(pSMB->fileName, fileName, name_len); strncpy 1992 fs/cifs/cifssmb.c strncpy(pSMB->OldFileName, fromName, name_len); strncpy 1996 fs/cifs/cifssmb.c strncpy(&pSMB->OldFileName[name_len + 1], toName, name_len2); strncpy 2139 fs/cifs/cifssmb.c strncpy(pSMB->OldFileName, fromName, name_len); strncpy 2143 fs/cifs/cifssmb.c strncpy(&pSMB->OldFileName[name_len + 1], toName, name_len2); strncpy 2198 fs/cifs/cifssmb.c strncpy(pSMB->FileName, fromName, name_len); strncpy 2221 fs/cifs/cifssmb.c strncpy(data_offset, toName, name_len_target); strncpy 2285 fs/cifs/cifssmb.c strncpy(pSMB->FileName, toName, name_len); strncpy 2307 fs/cifs/cifssmb.c strncpy(data_offset, fromName, name_len_target); strncpy 2384 fs/cifs/cifssmb.c strncpy(pSMB->OldFileName, fromName, name_len); strncpy 2388 fs/cifs/cifssmb.c strncpy(&pSMB->OldFileName[name_len + 1], toName, name_len2); strncpy 2441 fs/cifs/cifssmb.c strncpy(pSMB->FileName, searchName, name_len); strncpy 2494 fs/cifs/cifssmb.c strncpy(symlinkinfo, strncpy 2682 fs/cifs/cifssmb.c strncpy(symlinkinfo, strncpy 2875 fs/cifs/cifssmb.c strncpy(pSMB->FileName, searchName, name_len); strncpy 2960 fs/cifs/cifssmb.c strncpy(pSMB->FileName, fileName, name_len); strncpy 3282 fs/cifs/cifssmb.c strncpy(pSMB->FileName, searchName, name_len); strncpy 3356 fs/cifs/cifssmb.c strncpy(pSMB->FileName, searchName, name_len); strncpy 3456 fs/cifs/cifssmb.c strncpy(pSMB->FileName, searchName, name_len); strncpy 3557 fs/cifs/cifssmb.c strncpy(pSMB->FileName, searchName, name_len); strncpy 3861 fs/cifs/cifssmb.c strncpy(pSMB->FileName, searchName, name_len); strncpy 4062 fs/cifs/cifssmb.c strncpy(pSMB->RequestFileName, searchName, name_len); strncpy 4695 fs/cifs/cifssmb.c strncpy(pSMB->FileName, fileName, name_len); strncpy 4990 fs/cifs/cifssmb.c strncpy(pSMB->FileName, fileName, name_len); strncpy 5071 fs/cifs/cifssmb.c strncpy(pSMB->fileName, fileName, name_len); strncpy 5121 fs/cifs/cifssmb.c strncpy(pSMB->FileName, fileName, name_len); strncpy 5304 fs/cifs/cifssmb.c strncpy(pSMB->FileName, searchName, name_len); strncpy 5452 fs/cifs/cifssmb.c strncpy(pSMB->FileName, searchName, name_len); strncpy 5601 fs/cifs/cifssmb.c strncpy(pSMB->FileName, fileName, name_len); strncpy 5645 fs/cifs/cifssmb.c strncpy(parm_data->list[0].name, ea_name, name_len); strncpy 2051 fs/cifs/connect.c strncpy(pSesInfo->userName, strncpy 2434 fs/cifs/connect.c strncpy(bcc_ptr, user, 200); strncpy 2443 fs/cifs/connect.c strncpy(bcc_ptr, domain, 64); strncpy 2577 fs/cifs/connect.c strncpy(ses->serverOS, bcc_ptr, len); strncpy 2590 fs/cifs/connect.c strncpy(ses->serverNOS, bcc_ptr, len); strncpy 2602 fs/cifs/connect.c strncpy(ses->serverDomain, bcc_ptr, strncpy 2699 fs/cifs/connect.c strncpy(SecurityBlob->Signature, NTLMSSP_SIGNATURE, 8); strncpy 2918 fs/cifs/connect.c strncpy(ses->serverOS, strncpy 2930 fs/cifs/connect.c strncpy(ses->serverNOS, bcc_ptr, len); strncpy 2940 fs/cifs/connect.c strncpy(ses->serverDomain, strncpy 3037 fs/cifs/connect.c strncpy(SecurityBlob->Signature, NTLMSSP_SIGNATURE, 8); strncpy 3148 fs/cifs/connect.c strncpy(bcc_ptr, domain, 63); strncpy 3164 fs/cifs/connect.c strncpy(bcc_ptr, user, 63); strncpy 3323 fs/cifs/connect.c strncpy(ses->serverOS,bcc_ptr, len); strncpy 3333 fs/cifs/connect.c strncpy(ses->serverNOS, strncpy 3345 fs/cifs/connect.c strncpy(ses->serverDomain, strncpy 3491 fs/cifs/connect.c strncpy(tcon->treeName, tree, MAX_TREE_SIZE); strncpy 3520 fs/cifs/connect.c strncpy(tcon->nativeFileSystem, bcc_ptr, strncpy 90 fs/cifs/dir.c strncpy(full_path + namelen + 1, temp->d_name.name, strncpy 119 fs/cifs/dir.c strncpy(full_path, cifs_sb->tcon->treeName, dfsplen); strncpy 128 fs/cifs/dir.c strncpy(full_path + dfsplen, CIFS_SB(direntry->d_sb)->prepath, pplen); strncpy 167 fs/cifs/sess.c strncpy(bcc_ptr, ses->userName, 300); strncpy 177 fs/cifs/sess.c strncpy(bcc_ptr, ses->domainName, 256); strncpy 296 fs/cifs/sess.c strncpy(ses->serverOS, bcc_ptr, len); strncpy 313 fs/cifs/sess.c strncpy(ses->serverNOS, bcc_ptr, len); strncpy 70 fs/cifs/smbencrypt.c strncpy((char *) p14, (char *) passwd, 14); strncpy 66 fs/configfs/symlink.c strncpy(buffer + length,config_item_name(p),cur); strncpy 1827 fs/ecryptfs/crypto.c strncpy(tmp_tfm->cipher_name, cipher_name, strncpy 326 fs/ecryptfs/main.c strncpy(cipher_name_dst, cipher_name_src, strncpy 948 fs/exec.c strncpy(buf, tsk->comm, sizeof(tsk->comm)); strncpy 35 fs/gfs2/locking/dlm/mount.c strncpy(buf, table_name, 256); strncpy 47 fs/gfs2/locking/dlm/mount.c strncpy(ls->clustername, buf, GDLM_NAME_LEN); strncpy 48 fs/gfs2/locking/dlm/mount.c strncpy(ls->fsname, p, GDLM_NAME_LEN); strncpy 60 fs/gfs2/locking/dlm/mount.c strncpy(data, data_arg, 255); strncpy 129 fs/gfs2/mount.c strncpy(args->ar_lockproto, v, GFS2_LOCKNAME_LEN); strncpy 146 fs/gfs2/mount.c strncpy(args->ar_locktable, v, GFS2_LOCKNAME_LEN); strncpy 163 fs/gfs2/mount.c strncpy(args->ar_hostdata, v, GFS2_LOCKNAME_LEN); strncpy 116 fs/hostfs/hostfs_kern.c strncpy(&name[len + 1], parent->d_name.name, strncpy 120 fs/hostfs/hostfs_kern.c strncpy(name, root, strlen(root)); strncpy 101 fs/hppfs/hppfs.c strncpy(&name[len + 1], seg_name, seg_len); strncpy 104 fs/hppfs/hppfs.c strncpy(name, root, strlen(root)); strncpy 245 fs/ncpfs/ioctl.c strncpy(user.codepage, server->nls_vol->charset, len); strncpy 255 fs/ncpfs/ioctl.c strncpy(user.iocharset, server->nls_io->charset, len); strncpy 1545 fs/nfsd/vfs.c strncpy(path_alloced, path, plen); strncpy 1607 fs/ocfs2/super.c strncpy(osb->vol_label, di->id2.i_super.s_label, 63); strncpy 88 fs/partitions/ibm.c strncpy (type, data, 4); strncpy 90 fs/partitions/ibm.c strncpy(name, data + 8, 6); strncpy 92 fs/partitions/ibm.c strncpy(name, data + 4, 6); strncpy 198 fs/partitions/ldm.c strncpy (toc->bitmap1_name, data + 0x24, sizeof (toc->bitmap1_name)); strncpy 209 fs/partitions/ldm.c strncpy (toc->bitmap2_name, data + 0x46, sizeof (toc->bitmap2_name)); strncpy 236 fs/proc/kcore.c strncpy(prpsinfo.pr_psargs, saved_command_line, ELF_PRARGSZ); strncpy 405 fs/reiserfs/item_ops.c strncpy(namebuf + 1, name, sizeof(namebuf) - 3); strncpy 2499 fs/smbfs/proc.c strncpy(mask, lastname, mask_len); strncpy 3293 fs/smbfs/proc.c strncpy(buffer, req->rq_data, result); strncpy 167 fs/sysfs/symlink.c strncpy(s + len, sd->s_name, slen); strncpy 930 fs/udf/super.c strncpy(UDF_SB(sb)->s_volume_ident, outstr.u_name, strncpy 89 fs/xfs/linux-2.6/xfs_super.c strncpy(args->fsname, sb->s_id, MAXNAMELEN); strncpy 240 fs/xfs/linux-2.6/xfs_super.c strncpy(args->logname, value, MAXNAMELEN); strncpy 248 fs/xfs/linux-2.6/xfs_super.c strncpy(args->mtpt, value, MAXNAMELEN); strncpy 256 fs/xfs/linux-2.6/xfs_super.c strncpy(args->rtname, value, MAXNAMELEN); strncpy 249 fs/xfs/linux-2.6/xfs_xattr.c strncpy(offset, xfs_xattr_prefix(flags), prefix_len); strncpy 251 fs/xfs/linux-2.6/xfs_xattr.c strncpy(offset, name, namelen); /* real name */ strncpy 233 include/acpi/platform/acenv.h #define ACPI_STRNCPY(d,s,n) (void) strncpy((d), (s), (acpi_size)(n)) strncpy 12 include/asm-x86/string_32.h extern char *strncpy(char *dest, const char *src, size_t count); strncpy 25 include/linux/string.h extern char * strncpy(char *,const char *, __kernel_size_t); strncpy 804 kernel/cgroup.c strncpy(opts->release_agent, token + 14, PATH_MAX - 1); strncpy 2415 kernel/module.c strncpy(namebuf, ret, KSYM_NAME_LEN - 1); strncpy 616 kernel/params.c strncpy(modname, kp->name, name_len); strncpy 865 kernel/power/disk.c strncpy( resume_file, str, 255 ); strncpy 855 kernel/printk.c strncpy(buf + 4, str, sizeof(buf) - 5); strncpy 857 kernel/printk.c strncpy(buf, str, sizeof(buf) - 1); strncpy 72 kernel/tsacct.c strncpy(stats->ac_comm, tsk->comm, sizeof(stats->ac_comm)); strncpy 88 lib/kobject.c strncpy(path + length, kobject_name(parent), cur); strncpy 2043 mm/page_alloc.c strncpy(saved_string, (char*)table->data, strncpy 2054 mm/page_alloc.c strncpy((char*)table->data, saved_string, strncpy 433 net/8021q/vlan_dev.c strncpy(result, vlan_dev_info(dev)->real_dev->name, 23); strncpy 532 net/8021q/vlan_dev.c strncpy(ifrr.ifr_name, real_dev->name, IFNAMSIZ); strncpy 265 net/bluetooth/cmtp/capi.c strncpy(ctrl->manu, strncpy 297 net/bluetooth/cmtp/capi.c strncpy(ctrl->serial, strncpy 125 net/bluetooth/hidp/core.c strncpy(ci->name, session->input->name, 128); strncpy 127 net/bluetooth/hidp/core.c strncpy(ci->name, "HID Boot Device", 128); strncpy 134 net/bluetooth/hidp/core.c strncpy(ci->name, session->hid->name, 128); strncpy 777 net/bluetooth/hidp/core.c strncpy(hid->name, req->name, 128); strncpy 778 net/bluetooth/hidp/core.c strncpy(hid->phys, batostr(&src), 64); strncpy 779 net/bluetooth/hidp/core.c strncpy(hid->uniq, batostr(&dst), 64); strncpy 1177 net/core/pktgen.c strncpy(pkt_dev->dst_min, buf, len); strncpy 1200 net/core/pktgen.c strncpy(pkt_dev->dst_max, buf, len); strncpy 1311 net/core/pktgen.c strncpy(pkt_dev->src_min, buf, len); strncpy 1332 net/core/pktgen.c strncpy(pkt_dev->src_max, buf, len); strncpy 130 net/dsa/slave.c strncpy(drvinfo->driver, "dsa", 32); strncpy 131 net/dsa/slave.c strncpy(drvinfo->version, dsa_driver_version, 32); strncpy 132 net/dsa/slave.c strncpy(drvinfo->fw_version, "N/A", 32); strncpy 133 net/dsa/slave.c strncpy(drvinfo->bus_info, "platform", 32); strncpy 167 net/dsa/slave.c strncpy(data, "tx_packets", len); strncpy 168 net/dsa/slave.c strncpy(data + len, "tx_bytes", len); strncpy 169 net/dsa/slave.c strncpy(data + 2 * len, "rx_packets", len); strncpy 170 net/dsa/slave.c strncpy(data + 3 * len, "rx_bytes", len); strncpy 223 net/ipv4/netfilter/ipt_ULOG.c strncpy(pm->prefix, prefix, sizeof(pm->prefix)); strncpy 225 net/ipv4/netfilter/ipt_ULOG.c strncpy(pm->prefix, loginfo->prefix, sizeof(pm->prefix)); strncpy 238 net/ipv4/netfilter/ipt_ULOG.c strncpy(pm->indev_name, in->name, sizeof(pm->indev_name)); strncpy 243 net/ipv4/netfilter/ipt_ULOG.c strncpy(pm->outdev_name, out->name, sizeof(pm->outdev_name)); strncpy 171 net/ipv4/tcp_cong.c strncpy(name, ca->name, TCP_CA_NAME_MAX); strncpy 483 net/irda/af_irda.c strncpy(notify.name, name, NOTIFY_MAX_NAME); strncpy 518 net/irda/af_irda.c strncpy(notify.name, "Ultra", NOTIFY_MAX_NAME); strncpy 266 net/irda/ircomm/ircomm_param.c strncpy(self->settings.port_name, param->pv.c, 32); strncpy 470 net/irda/irlap_frame.c strncpy(discovery->data.info, text, NICKNAME_MAX_LEN); strncpy 571 net/irda/irlap_frame.c strncpy(discovery->data.info, text, NICKNAME_MAX_LEN); strncpy 862 net/irda/irlmp.c strncpy(irlmp->discovery_cmd.data.info, sysctl_devname, strncpy 1099 net/irda/irlmp.c strncpy(irlmp->discovery_rsp.data.info, sysctl_devname, strncpy 431 net/irda/irttp.c strncpy(ttp_notify.name, notify->name, NOTIFY_MAX_NAME); strncpy 315 net/irda/parameters.c strncpy(str, buf+2, p.pl); strncpy 113 net/sched/em_text.c strncpy(conf.algo, tm->config->ops->name, sizeof(conf.algo) - 1); strncpy 250 net/tipc/bearer.c strncpy(name_copy, name, TIPC_MAX_BEARER_NAME); strncpy 311 net/tipc/link.c strncpy(name_copy, name, TIPC_MAX_LINK_NAME); strncpy 120 samples/firmware_class/firmware_sample_firmware_class.c strncpy(fw_priv->fw_id, fw_name, FIRMWARE_NAME_MAX); strncpy 123 samples/firmware_class/firmware_sample_firmware_class.c strncpy(class_dev->class_id, device->bus_id, BUS_ID_SIZE); strncpy 72 scripts/kconfig/lxdialog/menubox.c strncpy(menu_item, item, menu_width - item_x); strncpy 1640 scripts/mod/modpost.c strncpy(buf->p + buf->pos, s, len); strncpy 315 scripts/mod/sumversion.c strncpy(dir, objfile, dirlen); strncpy 50 scripts/selinux/mdp/mdp.c strncpy(dest, start, end-start); strncpy 377 scripts/unifdef.c static void Mpass (void) { strncpy(keyword, "if ", 4); Pelif(); } strncpy 70 security/security.c strncpy(chosen_lsm, str, SECURITY_NAME_MAX); strncpy 93 security/security.c strncpy(chosen_lsm, ops->name, SECURITY_NAME_MAX); strncpy 2175 security/selinux/ss/services.c strncpy((*names)[i], policydb.p_bool_val_to_name[i], name_len); strncpy 229 security/smack/smack_access.c strncpy(skp->smk_known, smack, SMK_MAXLEN); strncpy 339 security/smack/smack_access.c strncpy(result, final, SMK_MAXLEN); strncpy 2118 security/smack/smack_lsm.c strncpy(sip, smack_net_ambient, SMK_MAXLEN); strncpy 2174 security/smack/smack_lsm.c strncpy(smack, smack_net_ambient, SMK_MAXLEN); strncpy 2327 security/smack/smack_lsm.c strncpy(smack, smack_known_huh.smk_known, SMK_MAXLEN); strncpy 2338 security/smack/smack_lsm.c strncpy(ssp->smk_packet, smack, SMK_MAXLEN); strncpy 182 sound/arm/pxa2xx-ac97.c strncpy(card->driver, dev->dev.driver->name, sizeof(card->driver)); strncpy 553 sound/i2c/other/ak4xxx-adda.c strncpy(uinfo->value.enumerated.name, input_names[idx], strncpy 1140 sound/soc/soc-core.c strncpy(codec->card->driver, codec->name, sizeof(codec->card->driver));