Home
last modified time | relevance | path

Searched refs:strncpy (Results 1 – 25 of 384) sorted by relevance

12345678910>>...16

/external/valgrind/main/memcheck/tests/
Doverlap.c44 strncpy(x+20, x, 20); // ok in main()
45 strncpy(x+20, x, 21); // overlap in main()
46 strncpy(x, x+20, 20); // ok in main()
47 strncpy(x, x+20, 21); // overlap in main()
74 strncpy(b, a, 25); in main()
78 strncpy(b, a, 26); in main()
82 strncpy(b, a, 27); in main()
121 strncpy( dest, src, 20 ); in main()
Doverlap.stderr.exp9 Source and destination overlap in strncpy(0x........, 0x........, 21)
10 at 0x........: strncpy (mc_replace_strmem.c:...)
13 Source and destination overlap in strncpy(0x........, 0x........, 21)
14 at 0x........: strncpy (mc_replace_strmem.c:...)
/external/iproute2/ip/
Dtunnel.c72 strncpy(ifr.ifr_name, dev, IFNAMSIZ); in tnl_ioctl_get_ifindex()
89 strncpy(ifr.ifr_name, dev, IFNAMSIZ); in tnl_ioctl_get_iftype()
124 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_get_ioctl()
141 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_add_ioctl()
143 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_add_ioctl()
160 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_del_ioctl()
162 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_del_ioctl()
178 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_gen_ioctl()
/external/libxslt/libxslt/
Dextra.c203 strncpy(digits, str+7, 4); in xsltFunctionLocalTime()
208 strncpy(digits, str+12, 2); in xsltFunctionLocalTime()
213 strncpy(digits, str+15, 2); in xsltFunctionLocalTime()
218 strncpy(digits, str+18, 2); in xsltFunctionLocalTime()
223 strncpy(digits, str+21, 2); in xsltFunctionLocalTime()
228 strncpy(digits, str+24, 2); in xsltFunctionLocalTime()
265 strncpy(result, str, 20); in xsltFunctionLocalTime()
267 strncpy(result+23, str+19, 5); in xsltFunctionLocalTime()
/external/llvm/test/Transforms/SimplifyLibCalls/
DStrNCpy.ll3 ; RUN: not grep {call.*strncpy}
13 declare i8* @strncpy(i8*, i8*, i32)
22 %rslt1 = call i8* @strncpy( i8* %arg1, i8* %arg2, i32 6 ) ; <i8*> [#uses=1]
24 %rslt2 = call i8* @strncpy( i8* %rslt1, i8* %arg3, i32 42 ) ; <i8*> [#uses=1]
26 %rslt3 = call i8* @strncpy( i8* %rslt2, i8* %arg4, i32 42 ) ; <i8*> [#uses=1]
/external/clang/test/Analysis/
Dstring.c467 #define strncpy(a,b,n) __strncpy_chk(a,b,n,(size_t)-1) macro
471 #define strncpy BUILTIN(strncpy) macro
472 char *strncpy(char *restrict s1, const char *restrict s2, size_t n);
478 strncpy(NULL, x, 5); // expected-warning{{Null pointer argument in call to string copy function}} in strncpy_null_dst()
482 strncpy(x, NULL, 5); // expected-warning{{Null pointer argument in call to string copy function}} in strncpy_null_src()
486strncpy(x, (char*)&strcpy_fn, 5); // expected-warning{{Argument to string copy function is the add… in strncpy_fn()
492 if (strncpy(x, y, 5) != x) in strncpy_effects()
505strncpy(x, y, 5); // expected-warning{{Size argument is greater than the length of the destination… in strncpy_overflow()
511strncpy(x, y, 5); // expected-warning{{Size argument is greater than the length of the destination… in strncpy_no_overflow()
520strncpy(x, y, n); // expected-warning{{Size argument is greater than the length of the destination… in strncpy_no_overflow2()
[all …]
/external/valgrind/main/coregrind/m_initimg/
Dinitimg-pathscan.c118 VG_(strncpy)( executable_name_out, buf, VKI_PATH_MAX-1 ); in match_executable()
124 VG_(strncpy)( executable_name_out, buf, VKI_PATH_MAX-1 ); in match_executable()
138 VG_(strncpy)( executable_name_out, exec, VKI_PATH_MAX-1 ); in ML_()
142 VG_(strncpy)( executable_name_in, exec, VKI_PATH_MAX-1 ); in ML_()
/external/iproute2/lib/
Dinet_proto.c37 strncpy(ncache, pe->p_name, 16); in inet_proto_n2a()
38 strncpy(buf, pe->p_name, len); in inet_proto_n2a()
64 strncpy(ncache, pe->p_name, 16); in inet_proto_a2n()
/external/srec/srec/EventLog/src/
Driff.c465 strncpy(chunk.tag, "swi ", 4); in readSwiChunk()
469 strncpy(list_chunk.tag, "segs", 4); in readSwiChunk()
495 strncpy(list_chunk.tag, "kvs ", 4); in readSwiChunk()
567 strncpy(parent.tag, "WAVE", 4); in riffReadWave2L16()
575 strncpy(chunk.tag, "fmt ", 4); in riffReadWave2L16()
600 strncpy(chunk.tag, "data", 4); in riffReadWave2L16()
696 strncpy(parent.tag, "WAVE", 4); in readRiff2Buf()
703 strncpy(chunk.tag, "fmt ", 4); in readRiff2Buf()
739 strncpy(chunk.tag, "data", 4); in readRiff2Buf()
888 strncpy(ck.ckString, "segs", 4); in writeSwiAudioChunk()
[all …]
/external/ipsec-tools/src/racoon/
Dvar.h82 strncpy((y), "(invalid)", sizeof(y)); \
84 strncpy((z), "(invalid)", sizeof(z)); \
93 strncpy((y), "(invalid)", sizeof(y)); \
/external/bluetooth/bluez/network/
Dcommon.c175 strncpy(req.device, dev, 16); in bnep_connadd()
186 strncpy(dev, req.device, 16); in bnep_connadd()
198 strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1); in bnep_if_up()
223 strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1); in bnep_if_down()
254 strncpy(ifr.ifr_name, bridge, IFNAMSIZ - 1); in bnep_add_to_bridge()
/external/chromium/chrome/common/
Dchild_process_logging_linux.cc63 strncpy(g_gpu_driver_ver, in SetGpuInfo()
67 strncpy(g_gpu_ps_ver, in SetGpuInfo()
71 strncpy(g_gpu_vs_ver, in SetGpuInfo()
/external/qemu/telephony/
Dsim_card.c45 strncpy( card->pin, "0000", sizeof(card->pin) ); in asimcard_create()
46 strncpy( card->puk, "12345678", sizeof(card->puk) ); in asimcard_create()
91 strncpy( sim->pin, pin, A_SIM_PIN_SIZE ); in asimcard_set_pin()
98 strncpy( sim->puk, puk, A_SIM_PUK_SIZE ); in asimcard_set_puk()
131 strncpy( sim->puk, puk, A_SIM_PUK_SIZE ); in asimcard_check_puk()
132 strncpy( sim->pin, pin, A_SIM_PIN_SIZE ); in asimcard_check_puk()
/external/netperf/
Dnetserver.c827 strncpy(local_host_name,"0.0.0.0",sizeof(local_host_name)); in main()
829 strncpy(listen_port,TEST_PORT,sizeof(listen_port)); in main()
845 strncpy(local_host_name,arg1,sizeof(local_host_name)); in main()
855 strncpy(local_host_name,"::0",sizeof(local_host_name)); in main()
875 strncpy(listen_port,optarg,sizeof(listen_port)); in main()
884 strncpy(local_host_name,"::0",sizeof(local_host_name)); in main()
987 strncpy(listen_port,TEST_PORT,sizeof(listen_port)); in main()
996 strncpy(listen_port,TEST_PORT,sizeof(listen_port)); in main()
Dnetsh.c355 strncpy(temp,family_string,10); in parse_address_family()
394 strncpy(test_port,"12865",PORTBUFSIZE); /* where is the test waiting */ in set_defaults()
395 strncpy(local_test_port,"0",PORTBUFSIZE);/* INPORT_ANY as it were */ in set_defaults()
711 strncpy(test_port,arg1,PORTBUFSIZE); in scan_cmd_line()
713 strncpy(local_test_port,arg2,PORTBUFSIZE); in scan_cmd_line()
721 strncpy(host_name,arg1,sizeof(host_name)); in scan_cmd_line()
731 strncpy(local_host_name,arg1,sizeof(local_host_name)); in scan_cmd_line()
/external/stlport/stlport/stl/
D_stdexcept_base.c35 strncpy(_M_name, _STLP_PRIV __get_c_string(__str), __size - 1); in __Named_exception()
58 strncpy(_M_name, __x._M_name, __size - 1); in __Named_exception()
81 strncpy(_M_name, __x._M_name, __size - 1);
/external/jhead/
Dgpsinfo.c230 strncpy(ImageInfo.GpsLat+2, TempString, 29); in ProcessGpsInfo()
232 strncpy(ImageInfo.GpsLong+2, TempString, 29); in ProcessGpsInfo()
240 strncpy(ImageInfo.GpsLatRaw, TempString, 31); in ProcessGpsInfo()
242 strncpy(ImageInfo.GpsLongRaw, TempString, 31); in ProcessGpsInfo()
268 strncpy(ImageInfo.GpsDateStamp, (char*)ValuePtr, sizeof(ImageInfo.GpsDateStamp)); in ProcessGpsInfo()
/external/libpcap/
Dfad-gifc.c211 strncpy(ifrflags.ifr_name, name, sizeof(ifrflags.ifr_name)); in scan_proc_net_dev()
378 strncpy(ifrflags.ifr_name, ifrp->ifr_name, in pcap_findalldevs()
397 strncpy(ifrnetmask.ifr_name, ifrp->ifr_name, in pcap_findalldevs()
427 strncpy(ifrbroadaddr.ifr_name, ifrp->ifr_name, in pcap_findalldevs()
466 strncpy(ifrdstaddr.ifr_name, ifrp->ifr_name, in pcap_findalldevs()
Dfad-glifc.c214 strncpy(ifrflags.lifr_name, ifrp->lifr_name, in pcap_findalldevs()
233 strncpy(ifrnetmask.lifr_name, ifrp->lifr_name, in pcap_findalldevs()
260 strncpy(ifrbroadaddr.lifr_name, ifrp->lifr_name, in pcap_findalldevs()
295 strncpy(ifrdstaddr.lifr_name, ifrp->lifr_name, in pcap_findalldevs()
/external/oprofile/libop/
Dop_xml_events.c87 strncpy(um_type, "bitmask", sizeof(um_type)); in xml_help_for_event()
90 strncpy(um_type, "exclusive", sizeof(um_type)); in xml_help_for_event()
93 strncpy(um_type, "mandatory", sizeof(um_type)); in xml_help_for_event()
/external/bluetooth/bluez/plugins/
Dgatt-example.c182 strncpy((char *) atval, desc_out_temp, len); in register_termometer_service()
209 strncpy((char *) atval, desc_out_hum, len); in register_termometer_service()
256 strncpy((char *) atval, manufacturer_name1, len); in register_manuf1_service()
269 strncpy((char *) atval, serial1, len); in register_manuf1_service()
313 strncpy((char *) atval, manufacturer_name2, len); in register_manuf2_service()
326 strncpy((char *) atval, serial2, len); in register_manuf2_service()
452 strncpy((char *) atval, desc_weight, len); in register_weight_service()
/external/bluetooth/bluez/audio/
Dctl_bluetooth.c360 strncpy(data->ext.id, "bluetooth", sizeof(data->ext.id) - 1); in SND_CTL_PLUGIN_DEFINE_FUNC()
361 strncpy(data->ext.driver, "Bluetooth-Audio", sizeof(data->ext.driver) - 1); in SND_CTL_PLUGIN_DEFINE_FUNC()
362 strncpy(data->ext.name, "Bluetooth Audio", sizeof(data->ext.name) - 1); in SND_CTL_PLUGIN_DEFINE_FUNC()
363 strncpy(data->ext.longname, "Bluetooth Audio", sizeof(data->ext.longname) - 1); in SND_CTL_PLUGIN_DEFINE_FUNC()
364 strncpy(data->ext.mixername, "Bluetooth Audio", sizeof(data->ext.mixername) - 1); in SND_CTL_PLUGIN_DEFINE_FUNC()
/external/ppp/pppd/plugins/radius/
Davpair.c79 strncpy (vp->strvalue, (char *) pval, AUTH_STRING_LEN); in rc_avpair_assign()
124 strncpy (vp->name, pda->name, sizeof (vp->name)); in rc_avpair_new()
706 strncpy(name, pair->name, (size_t) ln); in rc_avpair_tostr()
736 strncpy(value, dval->name, (size_t) lv-1); in rc_avpair_tostr()
741 strncpy(value, buffer, (size_t) lv); in rc_avpair_tostr()
747 strncpy (value, inet_ntoa (inad), (size_t) lv-1); in rc_avpair_tostr()
753 strncpy(value, buffer, lv-1); in rc_avpair_tostr()
/external/e2fsprogs/ext2ed/
Ddir_com.c228 strncpy (full_dir_name,dir_entry_ptr->name,dir_entry_ptr->name_len); in type_dir___cd()
246 strncpy (dir_name,full_dir_name,ptr-full_dir_name); in type_dir___cd()
461 strncpy (temp,dir_entry_ptr->name,dir_entry_ptr->name_len); /* The name is not terminated */ in action_show()
610 strncpy (variable,buffer,ptr-buffer);variable [ptr-buffer]=0; in type_dir___set()
640 strncpy (dir_entry_ptr->name,value,strlen (value)); in type_dir___set()
647 strncpy (temp,dir_entry_ptr->name,dir_entry_ptr->name_len); in type_dir___set()
/external/bluetooth/bluez/compat/
Dpand.c292 strncpy(devname, netdev, 16); in do_listen()
307 strncpy(down_cmd.dev, devname, strlen(devname) + 1); in do_listen()
308 strncpy(down_cmd.dst, str, strlen(str) + 1); in do_listen()
379 strncpy(down_cmd.dev, netdev, strlen(netdev) + 1); in create_connection()
380 strncpy(down_cmd.dst, dst, strlen(dst) + 1); in create_connection()
702 strncpy(netdev, optarg, 16); in main()
815 strncpy(cache.dst, dst, sizeof(cache.dst) - 1); in main()

12345678910>>...16