Commit d127c71a authored by Chris Allegretta's avatar Chris Allegretta
Browse files

- nano.c:do_wrap() - Fix isspace() call to operate on int

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1452 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent b2cd248d
Showing with 3 additions and 1 deletion
+3 -1
......@@ -34,6 +34,8 @@ CVS code
- Add regfree() to quote regex (David Benbennick).
- Only copy previous indent if AUTOINDENT is set (David
Benbennick).
do_wrap()
- Fix isspace() call to operate on int.
help_init()
- Fix crashing in do_help when COLS < 23 (David Benbennick).
main()
......
......@@ -1530,7 +1530,7 @@ int do_wrap(filestruct *inptr)
* between after_break and wrap_line. If the line already ends
* in a tab or a space, we don't add a space and decrement
* totsize to account for that. */
if (!isspace(newline[strlen(newline) - 1]))
if (!isspace((int) newline[strlen(newline) - 1]))
strcat(newline, " ");
else
totsize--;
......
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