nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 99869f54b5743127d41bbfdc7e195cfaa174eea2
parent 4a1fc558cf27254fdbc3a5556072e8a00d7a0b19
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Tue,  2 Nov 2004 20:48:37 +0000

fix crash in mallocstrncpy() call


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2046 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/search.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/search.c b/src/search.c @@ -315,7 +315,7 @@ bool findnextstr(bool can_display_wrap, bool wholeword, bool /* If we're searching for whole words, see if this potential * match is a whole word. */ if (wholeword) { - char *word = mallocstrncpy(word, found, found_len + 1); + char *word = mallocstrncpy(NULL, found, found_len + 1); word[found_len] = '\0'; found_whole = is_whole_word(found - fileptr->data,