A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/5ba45a7cd6d178fbe9463499d13f40dd9eca54e4 below:

avoid O(N^2) when filling from string typval (#16654) · neovim/neovim@5ba45a7 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-1

lines changed Original file line number Diff line number Diff line change

@@ -657,7 +657,8 @@ static int qf_get_next_str_line(qfstate_T *state)

657 657

state->linebuf = IObuff;

658 658

state->linelen = len;

659 659

}

660 -

STRLCPY(state->linebuf, p_str, state->linelen + 1);

660 +

memcpy(state->linebuf, p_str, state->linelen);

661 +

state->linebuf[state->linelen] = '\0';

661 662 662 663

// Increment using len in order to discard the rest of the line if it

663 664

// exceeds LINE_MAXLEN.

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4