- 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-d3aeb78583b8master
parent
b2cd248d1c
commit
d127c71ab3
|
@ -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()
|
||||
|
|
2
nano.c
2
nano.c
|
@ -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--;
|
||||
|
|
Loading…
Reference in New Issue