Commit 45329a12 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Rocco's fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1124 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 10 additions and 2 deletions
+10 -2
...@@ -16,10 +16,15 @@ CVS code - ...@@ -16,10 +16,15 @@ CVS code -
New function print1opt does most of the dirty work, stops New function print1opt does most of the dirty work, stops
duplication of effort and eases translator's jobs. Also duplication of effort and eases translator's jobs. Also
breaks all the current translations ;-) breaks all the current translations ;-)
- proto.h:
- Missing externs (Rocco).
- rcfile.c: - rcfile.c:
parse_rcfile() parse_rcfile()
- Don't use i for both for loop and atoi(), fixes lots of - Don't use i for both for loop and atoi(), fixes lots of
potential crashes, 1st reported by Jean-Philippe Guérard. potential crashes, 1st reported by Jean-Philippe Guérard.
- search.c:
search_init()
- Fix a missing free (Rocco).
- utils.c: - utils.c:
stristr() - Defined regardless of NANO_SMALL (noticed by Jordi). stristr() - Defined regardless of NANO_SMALL (noticed by Jordi).
- po/sv.po: - po/sv.po:
......
...@@ -40,7 +40,7 @@ extern int search_last_line; ...@@ -40,7 +40,7 @@ extern int search_last_line;
extern int currslen; extern int currslen;
#ifndef DISABLE_JUSTIFY #ifndef DISABLE_JUSTIFY
char *quotestr; extern char *quotestr;
#endif #endif
extern WINDOW *edit, *topwin, *bottomwin; extern WINDOW *edit, *topwin, *bottomwin;
...@@ -65,7 +65,7 @@ extern filestruct *open_files; ...@@ -65,7 +65,7 @@ extern filestruct *open_files;
#endif #endif
#ifdef ENABLE_COLOR #ifdef ENABLE_COLOR
colortype *colorstrings; extern colortype *colorstrings;
#endif #endif
extern shortcut *shortcut_list; extern shortcut *shortcut_list;
......
...@@ -145,6 +145,9 @@ int search_init(int replacing) ...@@ -145,6 +145,9 @@ int search_init(int replacing)
replacing ? _(" (to replace)") : "", replacing ? _(" (to replace)") : "",
buf); buf);
/* Release buf now that we don't need it anymore */
free(buf);
/* Cancel any search, or just return with no previous search */ /* Cancel any search, or just return with no previous search */
if ((i == -1) || (i < 0 && !last_search[0])) { if ((i == -1) || (i < 0 && !last_search[0])) {
statusbar(_("Search Cancelled")); statusbar(_("Search Cancelled"));
......
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