"git@gitlab.caltech.edu:cs24-19fa/git_rec_nano.git" did not exist on "7a1959fb11e1b233c7b383fd4e29dac9009c8de2"
Commit df8c3deb authored by Chris Allegretta's avatar Chris Allegretta
Browse files

2010-01-05 Tito <farmatito@tiscali.it>

        * search.c (update_history) - Fix bad length check causing search crash on armel platform.



git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4472 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 374216fe
Showing with 4 additions and 1 deletion
+4 -1
2010-01-05 Tito <farmatito@tiscali.it>
* search.c (update_history) - Fix bad length check causing search crash on armel platform.
2010-01-04 Chris Allegretta <chrisa@asty.org> 2010-01-04 Chris Allegretta <chrisa@asty.org>
* winio.c: edit_update, edit_redraw - Fix search not scrolling to the middle of the screen * winio.c: edit_update, edit_redraw - Fix search not scrolling to the middle of the screen
(reported by alpha@qzx.com) and places where we rely on maxrows but should not. (reported by alpha@qzx.com) and places where we rely on maxrows but should not.
......
...@@ -1357,7 +1357,7 @@ void update_history(filestruct **h, const char *s) ...@@ -1357,7 +1357,7 @@ void update_history(filestruct **h, const char *s)
assert(hage != NULL && hbot != NULL); assert(hage != NULL && hbot != NULL);
/* If this string is already in the history, delete it. */ /* 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) { if (p != NULL) {
filestruct *foo, *bar; filestruct *foo, *bar;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment