| /openbsd-src/usr.sbin/route6d/ |
| H A D | log.c | 73 char tmpbuf[LOGQUEUE_SIZE]; in log_enqueue() local 77 (void)vsnprintf(tmpbuf, sizeof(tmpbuf), fmt, ap); in log_enqueue() 79 (void)strlcat(logqueue, tmpbuf, LOGQUEUE_SIZE); in log_enqueue() 86 char tmpbuf[1024]; in vlog() local 87 char logbuf[LOGQUEUE_SIZE + sizeof(tmpbuf)]; in vlog() 94 (void)vsnprintf(tmpbuf, sizeof(tmpbuf), fmt, ap); in vlog() 96 (void)strlcat(logbuf, tmpbuf, sizeof(logbuf)); in vlog()
|
| /openbsd-src/usr.sbin/smtpd/ |
| H A D | mda_variables.c | 242 char tmpbuf[EXPAND_BUFFER], *ptmp, *pbuf, *ebuf; in mda_expand_format() local 248 if (len < sizeof tmpbuf) { in mda_expand_format() 253 memset(tmpbuf, 0, sizeof tmpbuf); in mda_expand_format() 255 ptmp = tmpbuf; in mda_expand_format() 260 tmpret = snprintf(ptmp, sizeof tmpbuf, "%s/", ui->directory); in mda_expand_format() 261 if (tmpret >= sizeof tmpbuf) { in mda_expand_format() 272 for (; *pbuf && ret < sizeof tmpbuf; ret += tmpret) { in mda_expand_format() 304 if (sizeof (tmpbuf) - (ptmp - tmpbuf) <= (size_t)exptoklen) in mda_expand_format() 312 if (ret >= sizeof tmpbuf) in mda_expand_format() 315 if ((ret = strlcpy(buf, tmpbuf, len)) >= len) in mda_expand_format()
|
| /openbsd-src/gnu/usr.bin/perl/ext/ODBM_File/ |
| H A D | ODBM_File.xs | 97 char *tmpbuf; in odbm_TIEHASH() local 103 Newx(tmpbuf, strlen(filename) + 5, char); in odbm_TIEHASH() 104 SAVEFREEPV(tmpbuf); in odbm_TIEHASH() 105 sprintf(tmpbuf,"%s.dir",filename); in odbm_TIEHASH() 112 if ((fd = open(tmpbuf,oflags,mode)) < 0 && errno != EEXIST) in odbm_TIEHASH() 116 sprintf(tmpbuf,"%s.pag",filename); in odbm_TIEHASH() 117 if ((fd = open(tmpbuf,oflags,mode)) < 0 && errno != EEXIST) in odbm_TIEHASH() 129 if ((fd = open(tmpbuf,O_RDONLY,mode)) < 0) in odbm_TIEHASH()
|
| /openbsd-src/usr.bin/tic/ |
| H A D | dump_entry.c | 76 static DYNBUF tmpbuf; variable 160 free_DYN(&tmpbuf); in _nc_leaks_dump_entry() 790 strncpy_DYN(&tmpbuf, src++, (size_t) 1); in fmt_complex() 794 strncpy_DYN(&tmpbuf, src++, (size_t) 1); in fmt_complex() 804 tmpbuf.text[tmpbuf.used - 1] = '\n'; in fmt_complex() 807 indent_DYN(&tmpbuf, level); in fmt_complex() 808 strncpy_DYN(&tmpbuf, "%", (size_t) 1); in fmt_complex() 809 strncpy_DYN(&tmpbuf, src, (size_t) 1); in fmt_complex() 813 strncpy_DYN(&tmpbuf, "\n", (size_t) 1); in fmt_complex() 814 indent_DYN(&tmpbuf, level + 1); in fmt_complex() [all …]
|
| /openbsd-src/lib/libedit/ |
| H A D | search.c | 449 wchar_t tmpbuf[EL_BUFSIZ]; in cv_search() local 453 tmpbuf[0] = '.'; in cv_search() 454 tmpbuf[1] = '*'; in cv_search() 460 tmplen = c_gets(el, &tmpbuf[LEN], in cv_search() 466 ch = tmpbuf[tmplen]; in cv_search() 467 tmpbuf[tmplen] = '\0'; in cv_search() 480 (void) wcsncpy(tmpbuf, el->el_search.patbuf, in cv_search() 481 sizeof(tmpbuf) / sizeof(*tmpbuf) - 1); in cv_search() 484 (void) wcsncpy(&el->el_search.patbuf[2], tmpbuf, in cv_search() 494 tmpbuf[tmplen++] = '.'; in cv_search() [all …]
|
| /openbsd-src/sys/dev/pci/drm/display/ |
| H A D | drm_dp_dual_mode_helper.c | 67 char *tmpbuf = NULL; in drm_dp_dual_mode_read() local 92 tmpbuf = kmalloc(size + offset, GFP_KERNEL); in drm_dp_dual_mode_read() 93 if (!tmpbuf) in drm_dp_dual_mode_read() 96 msgs[1].buf = tmpbuf; in drm_dp_dual_mode_read() 100 if (tmpbuf) in drm_dp_dual_mode_read() 101 memcpy(buffer, tmpbuf + offset, size); in drm_dp_dual_mode_read() 103 kfree(tmpbuf); in drm_dp_dual_mode_read()
|
| /openbsd-src/usr.bin/patch/ |
| H A D | util.c | 319 char *tmpbuf; in makedirs() local 321 if ((tmpbuf = strdup(filename)) == NULL) in makedirs() 325 char *s = strrchr(tmpbuf, '/'); in makedirs() 327 free(tmpbuf); in makedirs() 332 if (mkpath(tmpbuf) != 0) in makedirs() 333 pfatal("creation of %s failed", tmpbuf); in makedirs() 334 free(tmpbuf); in makedirs()
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Win32/ |
| H A D | longpath.inc | 23 CHAR_T tmpbuf[MAX_PATH+1]; 24 CHAR_T *tmpstart = tmpbuf; 84 if (len < (STRLEN)(tmpbuf - tmpstart + sizeof(tmpbuf))) { 102 FN_STRCPY(path,tmpbuf);
|
| /openbsd-src/gnu/usr.bin/perl/haiku/Haiku/ |
| H A D | Haiku.xs | 41 U8 *tmpbuf = NULL; in haiku_do_debug_printf() local 45 tmpbuf = bytes_to_utf8((const U8*) tmps, &len); in haiku_do_debug_printf() 46 tmps = (char *) tmpbuf; in haiku_do_debug_printf() 51 Safefree(tmpbuf); in haiku_do_debug_printf()
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/gprof/ |
| H A D | basic_blocks.c | 341 char tmpbuf[NBBS * 30]; in annotate_with_count() local 349 p = tmpbuf; in annotate_with_count() 397 if (p > tmpbuf) in annotate_with_count() 411 if (bb_annotate_all_lines && p == tmpbuf) in annotate_with_count() 433 strcpy (tmpbuf, "#####"); in annotate_with_count() 434 p = tmpbuf + 5; in annotate_with_count() 440 len = p - tmpbuf; in annotate_with_count() 443 strncpy (buf, tmpbuf, width); in annotate_with_count() 450 strcpy (buf + width - len, tmpbuf); in annotate_with_count()
|
| /openbsd-src/gnu/usr.bin/binutils/gprof/ |
| H A D | basic_blocks.c | 351 char tmpbuf[NBBS * 30]; local 359 p = tmpbuf; 407 if (p > tmpbuf) 421 if (bb_annotate_all_lines && p == tmpbuf) 443 strcpy (tmpbuf, "#####"); 444 p = tmpbuf + 5; 450 len = p - tmpbuf; 453 strncpy (buf, tmpbuf, width); 460 strcpy (buf + width - len, tmpbuf);
|
| /openbsd-src/sbin/restore/ |
| H A D | tape.c | 286 # define tmpbuf tmpspcl.s_spcl in getvol() macro 377 if (gethead(&tmpbuf) == FAIL) { in getvol() 383 if (tmpbuf.c_volume != volno) { in getvol() 384 fprintf(stderr, "Wrong volume (%d)\n", tmpbuf.c_volume); in getvol() 388 if (tmpbuf.c_date != dumpdate || tmpbuf.c_ddate != dumptime) { in getvol() 389 time_t t = (time_t)tmpbuf.c_date; in getvol() 415 tpblksread, tmpbuf.c_firstrec); in getvol() 416 if (tmpbuf.c_type == TS_TAPE && (tmpbuf.c_flags & DR_NEWHEADER)) { in getvol() 418 tpblksread = tmpbuf.c_firstrec; in getvol() 419 for (i = tmpbuf.c_count; i > 0; i--) in getvol() [all …]
|
| /openbsd-src/gnu/usr.sbin/mkhybrid/src/ |
| H A D | joliet.c | 100 unsigned char * tmpbuf; in FDECL3() local 110 tmpbuf = (u_char *) e_malloc(size); in FDECL3() 111 memcpy( tmpbuf, buffer, size); in FDECL3() 115 tmpbuf = (u_char *)source; in FDECL3() 132 if( tmpbuf[j] != 0 && in FDECL3() 133 (tmpbuf[j] <= 0x1f || (tmpbuf[j] >= 0x7F && tmpbuf[j] <= 0xA0)) ) in FDECL3() 139 switch(tmpbuf[j]) in FDECL3() 154 buffer[i+1] = tmpbuf[j]; in FDECL3() 162 free(tmpbuf); in FDECL3()
|
| /openbsd-src/usr.bin/systat/ |
| H A D | main.c | 98 char tmpbuf[TIMEPOS]; in print_header() local 122 snprintf(tmpbuf, sizeof(tmpbuf), in print_header() 126 snprintf(tmpbuf, sizeof(tmpbuf), in print_header() 131 tmpbuf, hostname, timebuf); in print_header()
|
| /openbsd-src/usr.bin/openssl/ |
| H A D | asn1pars.c | 244 unsigned char *tmpbuf; in asn1parse_main() 338 tmpbuf = (unsigned char *) str; in asn1parse_main() 351 tmpbuf += j; in asn1parse_main() 354 ctmpbuf = tmpbuf; in asn1parse_main() 371 tmpbuf = at->value.asn1_string->data; in asn1parse_main() 374 str = (char *) tmpbuf; in asn1parse_main() 245 unsigned char *tmpbuf; asn1parse_main() local
|
| /openbsd-src/usr.bin/rpcgen/ |
| H A D | rpc_svcout.c | 155 char tmpbuf[32]; local 162 snprintf(tmpbuf, sizeof tmpbuf, "%s\t\t", sp); 163 print_err_message(tmpbuf); 170 print_err_message(tmpbuf); 190 print_err_message(tmpbuf); 879 char tmpbuf[32]; local 920 (void) snprintf(tmpbuf, sizeof tmpbuf, "%s\t\t", sp); 921 print_err_message(tmpbuf); 946 print_err_message(tmpbuf);
|
| /openbsd-src/usr.sbin/unbound/testcode/ |
| H A D | petal.c | 450 char* tmpbuf = NULL; in provide_file_chunked() local 494 free(tmpbuf); in provide_file_chunked() 495 tmpbuf = malloc(avail-16); in provide_file_chunked() 496 if(!tmpbuf) in provide_file_chunked() 499 red = in?fread(tmpbuf, 1, avail-16, in):0; in provide_file_chunked() 509 memmove(at, tmpbuf, red); in provide_file_chunked() 540 free(tmpbuf); in provide_file_chunked()
|
| /openbsd-src/lib/libagentx/ |
| H A D | ax.c | 789 char tmpbuf[1024]; in ax_varbind2string() local 807 p = tmpbuf; in ax_varbind2string() 808 bufleft = sizeof(tmpbuf); in ax_varbind2string() 822 ax_oid2string(&(vb->avb_oid)), tmpbuf); in ax_varbind2string() 851 strlcpy(tmpbuf, in ax_varbind2string() 852 ax_oid2string(&(vb->avb_data.avb_oid)), sizeof(tmpbuf)); in ax_varbind2string() 854 ax_oid2string(&(vb->avb_oid)), tmpbuf); in ax_varbind2string() 863 tmpbuf, sizeof(tmpbuf)) == NULL) { in ax_varbind2string() 871 ax_oid2string(&(vb->avb_oid)), tmpbuf); in ax_varbind2string() 886 p = tmpbuf; in ax_varbind2string() [all …]
|
| /openbsd-src/lib/libcrypto/pkcs7/ |
| H A D | pk7_smime.c | 550 BIO *tmpbuf; in PKCS7_decrypt() local 553 if (!(tmpbuf = BIO_new(BIO_f_buffer()))) { in PKCS7_decrypt() 558 BIO_push(tmpbuf, tmpmem); in PKCS7_decrypt() 559 ret = SMIME_text(tmpbuf, data); in PKCS7_decrypt() 564 BIO_free_all(tmpbuf); in PKCS7_decrypt()
|
| /openbsd-src/usr.sbin/snmpd/ |
| H A D | ax.c | 938 char tmpbuf[1024]; in ax_varbind2string() local 956 p = tmpbuf; in ax_varbind2string() 957 bufleft = sizeof(tmpbuf); in ax_varbind2string() 971 ax_oid2string(&(vb->avb_oid)), tmpbuf); in ax_varbind2string() 1000 strlcpy(tmpbuf, in ax_varbind2string() 1001 ax_oid2string(&(vb->avb_data.avb_oid)), sizeof(tmpbuf)); in ax_varbind2string() 1003 ax_oid2string(&(vb->avb_oid)), tmpbuf); in ax_varbind2string() 1012 tmpbuf, sizeof(tmpbuf)) == NULL) { in ax_varbind2string() 1020 ax_oid2string(&(vb->avb_oid)), tmpbuf); in ax_varbind2string() 1035 p = tmpbuf; in ax_varbind2string() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/ |
| H A D | util.c | 3410 char tmpbuf[MAXPATHLEN]; 3458 tmpbuf[0] = '\0'; 3478 (!hasdir && my_trnlnm("DCL$PATH",tmpbuf,idx++)) ) 3483 *tmpbuf = '\0'; 3485 if ((strlen(tmpbuf) + strlen(scriptname) 3486 + MAX_EXT_LEN) >= sizeof tmpbuf) 3488 my_strlcat(tmpbuf, scriptname, sizeof(tmpbuf)); 3521 if (len+MAX_EXT_LEN+1 >= sizeof(tmpbuf)) 3523 my_strlcpy(tmpbuf, scriptnam 3340 char tmpbuf[MAXPATHLEN]; global() local [all...] |
| H A D | gv.c | 140 char *tmpbuf; in Perl_gv_fetchfile_flags() local 151 tmpbuf = smallbuf; in Perl_gv_fetchfile_flags() 153 Newx(tmpbuf, tmplen, char); in Perl_gv_fetchfile_flags() 155 tmpbuf[0] = '_'; in Perl_gv_fetchfile_flags() 156 tmpbuf[1] = '<'; in Perl_gv_fetchfile_flags() 157 memcpy(tmpbuf + 2, name, namelen); in Perl_gv_fetchfile_flags() 158 GV **gvp = (GV**)hv_fetch(PL_defstash, tmpbuf, tmplen, (flags & GVF_NOADD) ? FALSE : TRUE); in Perl_gv_fetchfile_flags() 162 gv_init(gv, PL_defstash, tmpbuf, tmplen, FALSE); in Perl_gv_fetchfile_flags() 175 if (tmpbuf != smallbuf) in Perl_gv_fetchfile_flags() 176 Safefree(tmpbuf); in Perl_gv_fetchfile_flags() 1614 char *tmpbuf; S_gv_stashpvn_internal() local 1823 char *tmpbuf; S_parse_gv_stash_name() local [all...] |
| /openbsd-src/usr.sbin/nsd/ |
| H A D | xfr-inspect.c | 151 buffer_type* tmpbuf; in print_records() local 156 tmpbuf = buffer_create(region, QIOBUFSZ); in print_records() 157 if(!tmpbuf) { in print_records() 183 if(!print_rr(stdout, NULL, rr, tmpregion, tmpbuf)) { in print_records()
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/ |
| H A D | arm-tdep.c | 1996 bfd_byte tmpbuf[FP_REGISTER_SIZE]; in arm_extract_return_value() local 1998 regcache_cooked_read (regs, ARM_F0_REGNUM, tmpbuf); in arm_extract_return_value() 1999 convert_from_extended (floatformat_from_type (type), tmpbuf, in arm_extract_return_value() 2052 bfd_byte tmpbuf[INT_REGISTER_SIZE]; in arm_extract_return_value() local 2056 regcache_cooked_read (regs, regno++, tmpbuf); in arm_extract_return_value() 2057 memcpy (valbuf, tmpbuf, in arm_extract_return_value() 2220 bfd_byte tmpbuf[INT_REGISTER_SIZE]; in arm_store_return_value() local 2223 store_signed_integer (tmpbuf, INT_REGISTER_SIZE, val); in arm_store_return_value() 2224 regcache_cooked_write (regs, ARM_A1_REGNUM, tmpbuf); in arm_store_return_value() 2249 bfd_byte tmpbuf[INT_REGISTER_SIZE]; in arm_store_return_value() local [all …]
|
| /openbsd-src/lib/libcrypto/pem/ |
| H A D | pvkfmt.c | 107 unsigned char *tmpbuf, *q; in read_lebn() local 111 tmpbuf = malloc(nbyte); in read_lebn() 112 if (!tmpbuf) in read_lebn() 114 q = tmpbuf; in read_lebn() 117 *r = BN_bin2bn(tmpbuf, nbyte, NULL); in read_lebn() 118 free(tmpbuf); in read_lebn()
|