| /vim-8.2.3635/src/ |
| H A D | os_qnx.c | 129 STRNCPY(clip_header[0].type, CLIP_TYPE_VIM, 8); in clip_mch_set_selection() 133 STRNCPY(clip_header[1].type, CLIP_TYPE_TEXT, 8); in clip_mch_set_selection()
|
| H A D | term.c | 6589 STRNCPY(ks->buf, bt->bt_string, KSSIZE); in swap_tcap() 6590 STRNCPY(ks->vbuf, ks->vtp, KSSIZE); in swap_tcap() 6591 STRNCPY(ks->v2buf, ks->vtp2, KSSIZE); in swap_tcap() 6593 STRNCPY(ks->arr, bt->bt_string, KSSIZE); in swap_tcap() 6616 STRNCPY(&ks->buf[0], bt->bt_string, KSSIZE); in swap_tcap() 6619 STRNCPY(&ks->vbuf[0], bt->bt_string, KSSIZE); in swap_tcap() 6622 STRNCPY(&ks->v2buf[0], bt->bt_string, KSSIZE); in swap_tcap() 6637 STRNCPY(bt->bt_string, &ks->buf[0], KSSIZE); in swap_tcap() 6640 STRNCPY(bt->bt_string, &ks->vbuf[0], KSSIZE); in swap_tcap() 6643 STRNCPY(bt->bt_string, &ks->v2buf[0], KSSIZE); in swap_tcap()
|
| H A D | gui_haiku.cc | 3858 STRNCPY(font_name, hl_get_font_name(), buff_size); in gui_mch_get_font() 3860 STRNCPY(font_name, name, buff_size); in gui_mch_get_font() 3876 STRNCPY(buff, font_name, buff_size); in gui_mch_get_font() 3877 STRNCPY(family, strtok(buff, "/\0"), B_FONT_FAMILY_LENGTH); in gui_mch_get_font() 3880 STRNCPY(style, style_s, B_FONT_STYLE_LENGTH); in gui_mch_get_font()
|
| H A D | strings.c | 47 STRNCPY(p, string, len); in vim_strnsave() 509 STRNCPY(to, from, len); in vim_strncpy()
|
| H A D | fold.c | 1810 STRNCPY(newline + line_len + (p - cms), marker, markerlen); in foldAddMarker() 1885 STRNCPY(newline, line, p - line); in foldDelMarker()
|
| H A D | filepath.c | 3399 STRNCPY(p, path_end, len); in dos_expandpath() 3643 STRNCPY(p, path_end, len); in unix_expandpath()
|
| H A D | insexpand.c | 3163 STRNCPY(IObuff, ptr, len); in ins_compl_get_exp() 3188 STRNCPY(IObuff + len, ptr, tmp_ptr - ptr); in ins_compl_get_exp()
|
| H A D | vim.h | 1627 #define STRNCPY(d, s, n) strncpy((char *)(d), (char *)(s), (size_t)(n)) macro
|
| H A D | regexp_nfa.c | 2895 STRNCPY(save, &p[last], 2); in nfa_print_state2() 2896 STRNCPY(&p[last], "+-", 2); in nfa_print_state2() 2898 STRNCPY(&p[last], save, 2); in nfa_print_state2()
|
| H A D | search.c | 3742 STRNCPY(IObuff, aux, i); in find_pattern_in_path() 3780 STRNCPY(IObuff + i, aux, p - aux); in find_pattern_in_path()
|
| H A D | ex_cmds.c | 353 STRNCPY(sortbuf1, ml_get(l1.lnum) + l1.st_u.line.start_col_nr, in sort_compare() 356 STRNCPY(sortbuf2, ml_get(l2.lnum) + l2.st_u.line.start_col_nr, in sort_compare()
|
| H A D | spellsuggest.c | 2797 STRNCPY(kword + kwordlen[depth], fword + fwordidx[depth], in find_keepcap_word() 2803 STRNCPY(kword + kwordlen[depth], uword + uwordidx[depth], in find_keepcap_word()
|
| H A D | clipboard.c | 1150 STRNCPY(bufp, ScreenLines + LineOffset[row] + start_col, in clip_copy_modeless_selection()
|
| H A D | misc1.c | 1797 STRNCPY(pnew, p, (pend1 - p)); in vim_getenv()
|
| H A D | regexp.c | 2450 STRNCPY(retval + len, reg_getline_submatch(lnum), in reg_submatch()
|
| H A D | gui_gtk.c | 1321 STRNCPY(patt, filter, i); in gui_mch_browse()
|
| H A D | gui_photon.c | 1469 STRNCPY(vim_text, dialog_text, IOSIZE - 1); in gui_ph_dialog_close()
|
| H A D | drawline.c | 2322 STRNCPY(p, p_extra + 1, STRLEN(p_extra) - 1); in win_line()
|
| H A D | screen.c | 1052 STRNCPY(buf + len, s, l); in win_redr_status_matches()
|
| H A D | fileio.c | 4798 STRNCPY(buf, path, MAXPATHL-5); in readdir_core()
|
| H A D | memline.c | 342 STRNCPY(b0p->b0_version + 4, Version, 6); in ml_open()
|
| H A D | userfunc.c | 5197 STRNCPY(IObuff + 8, s, IOSIZE - 8); in get_return_cmd()
|
| H A D | ex_docmd.c | 4707 STRNCPY(ptr, program, i); in replace_makeprg()
|
| H A D | gui_w32.c | 7881 STRNCPY(text, menu->actext, acLen); in gui_mch_tearoff()
|
| /vim-8.2.3635/runtime/doc/ |
| H A D | version8.txt | 26160 Solution: Use mch_memmove() instead of STRNCPY(). 31866 Problem: Using STRNCPY() wrongly. Warning for uninitialized variable. 33648 Problem: Compiler warnings for use of STRNCPY(). (John Marriott) 33649 Solution: Use mch_memmove() instead of STRNCPY().
|