Home
last modified time | relevance | path

Searched refs:safe_strncpy (Results 1 – 25 of 40) sorted by relevance

12

/busybox-1.35.0/libbb/
Dutmp.c27 safe_strncpy(utent.ut_line, tty_name, sizeof(utent.ut_line)); in write_new_utmp()
29 safe_strncpy(utent.ut_user, username, sizeof(utent.ut_user)); in write_new_utmp()
31 safe_strncpy(utent.ut_host, hostname, sizeof(utent.ut_host)); in write_new_utmp()
115 safe_strncpy(utent.ut_line, skip_dev_pfx(tty_name), sizeof(utent.ut_line)); in update_utmp()
117 safe_strncpy(utent.ut_user, username, sizeof(utent.ut_user)); in update_utmp()
119 safe_strncpy(utent.ut_host, hostname, sizeof(utent.ut_host)); in update_utmp()
Dsafe_strncpy.c12 char* FAST_FUNC safe_strncpy(char *dst, const char *src, size_t size) in safe_strncpy() function
Dgetpty.c28 safe_strncpy(line, name, GETPTY_BUFSIZE); in xgetpty()
Dbb_strtod.c73 safe_strncpy(buf, arg, 10);
Dfind_root_device.c43 safe_strncpy(ap->devpath + len, entry->d_name, rem); in find_block_device_in_dir()
Dloop.c193 safe_strncpy((char *)loopinfo.lo_file_name, file, LO_NAME_SIZE); in set_loop()
Dxconnect.c197 safe_strncpy(sun->sun_path, host + 6, sizeof(sun->sun_path));
225 host = safe_strncpy(alloca(sz), host, sz);
Dprocps.c54 safe_strncpy(cp->cache[i].name, x2x_utoa(id), sizeof(cp->cache[i].name)); in get_cached()
387 safe_strncpy(sp->comm, comm1 + 1, sizeof(sp->comm)); in procps_scan()
DKbuild.src84 lib-y += safe_strncpy.o
/busybox-1.35.0/procps/
Dps.c214 safe_strncpy(buf, get_cached_username(ps->uid), size+1); in func_user()
224 safe_strncpy(buf, user, size+1); in func_user()
232 safe_strncpy(buf, get_cached_groupname(ps->gid), size+1); in func_group()
237 safe_strncpy(buf, ps->comm, size+1); in func_comm()
242 safe_strncpy(buf, ps->state, size+1); in func_state()
300 safe_strncpy(buf, get_cached_groupname(ps->rgid), size+1); in func_rgroup()
304 safe_strncpy(buf, get_cached_username(ps->ruid), size+1); in func_ruser()
368 safe_strncpy(buf, ps->context ? ps->context : "unknown", size+1); in func_label()
Dlsof.c67 safe_strncpy(name + baseofs, entry->d_name, 10); in lsof_main()
/busybox-1.35.0/modutils/
Drmmod.c68 safe_strncpy(modname, bname, MODULE_NAME_LEN); in rmmod_main()
/busybox-1.35.0/loginutils/
Dcryptpw.c120 safe_strncpy(salt_ptr, opt_S, sizeof(salt) - (sizeof("$N$")-1)); in cryptpw_main()
Dlogin.c370 safe_strncpy(username, opt_user, sizeof(username)); in login_main()
374 safe_strncpy(username, argv[0], sizeof(username)); in login_main()
462 safe_strncpy(username, pamuser, sizeof(username)); in login_main()
488 safe_strncpy(username, "UNKNOWN", sizeof(username)); in login_main()
/busybox-1.35.0/e2fsprogs/
Dtune2fs.c78 safe_strncpy((char *)sb->s_volume_name, label, sizeof(sb->s_volume_name)); in tune2fs_main()
/busybox-1.35.0/coreutils/
Dwho.c136 safe_strncpy(ut->ut_line[0] == '/' ? name : name + sizeof("/dev/")-1, in who_main()
/busybox-1.35.0/init/
Dhalt.c115 safe_strncpy(utmp.ut_host, uts.release, sizeof(utmp.ut_host)); in write_wtmp()
/busybox-1.35.0/util-linux/
Dmkswap.c163 safe_strncpy(hdr->sws_volume, label, 16); in mkswap_main()
Dlast_fancy.c59 safe_strncpy(login_time, ctime(&tmp), 17); in show_entry()
Dmkfs_reiser.c246 safe_strncpy((char *)sb->s_label, label, sizeof(sb->s_label)); in mkfs_reiser_main()
/busybox-1.35.0/networking/udhcp/
Darpping.c82 safe_strncpy(addr.sa_data, interface, sizeof(addr.sa_data)); in arpping()
/busybox-1.35.0/libpwdgrp/
Duidgid_get.c44 safe_strncpy(user, ug, sz); in get_uidgid()
/busybox-1.35.0/networking/
Dzcip.c310 safe_strncpy(G.iface_sockaddr.sa_data, argv_intf, sizeof(G.iface_sockaddr.sa_data)); in zcip_main()
/busybox-1.35.0/archival/
Dtar.c320 safe_strncpy(header.uname, get_cached_username(statbuf->st_uid), sizeof(header.uname)); in writeTarHeader()
321 safe_strncpy(header.gname, get_cached_groupname(statbuf->st_gid), sizeof(header.gname)); in writeTarHeader()
/busybox-1.35.0/shell/
Dmath.c640 safe_strncpy(numstackptr->var, expr, var_name_size); in evaluate_string()

12