nano 2.2.1: fix crash in search From: Tito Ragusa Fix a crash in nano's search mode Signed-off-by: Tito Ragusa --- src/search.c.orig 2009-12-30 22:37:13.000000000 +0100 +++ src/search.c 2009-12-30 22:38:23.000000000 +0100 @@ -1357,7 +1357,7 @@ assert(hage != NULL && hbot != NULL); /* If this string is already in the history, delete it. */ - p = find_history(*hage, *hbot, s, (size_t)-1); + p = find_history(*hage, *hbot, s, strlen(s)); if (p != NULL) { filestruct *foo, *bar;