x11/aterm: Update to 1.0.1. Bit over 11 years late, but at least we got there in the end! ChangeLog: 2007-08-01 vae * adding CL generation to makefiles * fixing configure bug * preparing configure for 1.0.1 * changed MWM HINTS, re gentoo bug #139554. 2006-06-26 sasha * fixed compile errors when no XLocale is available 2006-03-29 sasha * converted main.c back to unix mode * converted screen.c back to unix mode 2006-02-17 sasha * fixed bug preventing from pasting more then 16Kb into aterm 2006-02-13 sasha * minor cleanups * fix for the high-ascii pasting in screen.c - need to use XA_STRING ??? 2006-01-08 sasha * added patch for background refresh on desktop changes in ion3 when pixmap has not changed 2005-12-21 sasha * added uninstall target to the top Makefile 2005-12-06 sasha * Added patch for XIM support gratiously provided by calkin@ieee.org 2005-09-19 sasha * updated mappings for F1-F4 to modern \033OP, etc. * possibly fixed pasting on 64bit systems 2005-09-06 sasha * updated contacts info in man page * applyed term size patch from daniel@roe.ch 2005-07-11 sasha * fixed geometry printing into stderrdiff -r1.55 -r1.56 pkgsrc/x11/aterm/Makefile
(nia)
@@ -1,27 +1,27 @@ | @@ -1,27 +1,27 @@ | |||
1 | # $NetBSD: Makefile,v 1.55 2018/11/14 22:22:38 kleink Exp $ | 1 | # $NetBSD: Makefile,v 1.56 2018/11/30 17:25:05 nia Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= aterm-1.0.0 | 4 | DISTNAME= aterm-1.0.1 | |
5 | PKGREVISION= 19 | |||
6 | CATEGORIES= x11 | 5 | CATEGORIES= x11 | |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aterm/} | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aterm/} | |
8 | EXTRACT_SUFX= .tar.bz2 | 7 | EXTRACT_SUFX= .tar.bz2 | |
9 | #CVS_ROOT= :pserver:anonymous@cvs.aftercode.net:/home/cvsroot | 8 | #CVS_ROOT= :pserver:anonymous@cvs.aftercode.net:/home/cvsroot | |
10 | #CVS_MODULE= aterm1 | 9 | #CVS_MODULE= aterm1 | |
11 | 10 | |||
12 | MAINTAINER= pkgsrc-users@NetBSD.org | 11 | MAINTAINER= pkgsrc-users@NetBSD.org | |
13 | HOMEPAGE= http://www.afterstep.org/aterm.php | 12 | HOMEPAGE= http://www.afterstep.org/aterm.php | |
14 | COMMENT= Aterm (Afterstep XVT) - a VT102 emulator for the X window system | 13 | COMMENT= Aterm (Afterstep XVT) - a VT102 emulator for the X window system | |
14 | LICENSE= gnu-gpl-v2 | |||
15 | 15 | |||
16 | GNU_CONFIGURE= YES | 16 | GNU_CONFIGURE= YES | |
17 | MAKE_JOBS_SAFE= no | 17 | MAKE_JOBS_SAFE= no | |
18 | 18 | |||
19 | CONFIGURE_ARGS+=--enable-background-image \ | 19 | CONFIGURE_ARGS+=--enable-background-image \ | |
20 | --enable-transparency \ | 20 | --enable-transparency \ | |
21 | --enable-fading \ | 21 | --enable-fading \ | |
22 | --enable-graphics \ | 22 | --enable-graphics \ | |
23 | --with-xpm \ | 23 | --with-xpm \ | |
24 | --with-xpm-includes=${BUILDLINK_PREFIX.libXpm}/include \ | 24 | --with-xpm-includes=${BUILDLINK_PREFIX.libXpm}/include \ | |
25 | --with-xpm-library=${BUILDLINK_PREFIX.libXpm}/lib \ | 25 | --with-xpm-library=${BUILDLINK_PREFIX.libXpm}/lib \ | |
26 | --with-jpeg \ | 26 | --with-jpeg \ | |
27 | --with-jpeg-includes=${JPEGBASE}/include \ | 27 | --with-jpeg-includes=${JPEGBASE}/include \ |
@@ -1,13 +1,13 @@ | @@ -1,13 +1,13 @@ | |||
1 | $NetBSD: distinfo,v 1.17 2016/05/01 19:59:27 dholland Exp $ | 1 | $NetBSD: distinfo,v 1.18 2018/11/30 17:25:05 nia Exp $ | |
2 | 2 | |||
3 | SHA1 (aterm-1.0.0.tar.bz2) = 806fd20aec2851c5eea26d9e6a707985da3579a3 | 3 | SHA1 (aterm-1.0.1.tar.bz2) = a975753b415306a0734efc3773de8a86129bb54b | |
4 | RMD160 (aterm-1.0.0.tar.bz2) = b74f54b6aa6f1d4a094671507c30f627f074eb48 | 4 | RMD160 (aterm-1.0.1.tar.bz2) = 74c46af824c19d0c24c26178f0cb38c2d4e66e21 | |
5 | SHA512 (aterm-1.0.0.tar.bz2) = 715cbf0416ff8cf23705a5333f0666a1f3afec3e17c6988e196f1798b1b4cf75e43085572b9d2906aee6060771a792545a7aa0aa9d2f4c2f0e7db7ac6e4021d3 | 5 | SHA512 (aterm-1.0.1.tar.bz2) = 05c78590bba55d892d9f7add384e4ae8d56197dbcd9caff2be4a52d5c162e767a464359ba806fc95961d8035575a2b4a962fc35cfa44f95025b477fa3e15e56b | |
6 | Size (aterm-1.0.0.tar.bz2) = 248708 bytes | 6 | Size (aterm-1.0.1.tar.bz2) = 276810 bytes | |
7 | SHA1 (patch-aa) = 63dd4599dcf49c6269502d7871b99ae01e42f581 | 7 | SHA1 (patch-aa) = 6cd2d1144d79b000fb21efe239efedd6b9a0f05b | |
8 | SHA1 (patch-ac) = 0e28da19c8f146ff14984add086e03a38db561ef | 8 | SHA1 (patch-ac) = 0e28da19c8f146ff14984add086e03a38db561ef | |
9 | SHA1 (patch-ad) = e9af3fb1b7ce2b25401d0e781f519f2b7cac0973 | 9 | SHA1 (patch-ad) = 0a23eb40ccf1ecb181c167e9c156a99924a288b3 | |
10 | SHA1 (patch-ae) = 4c08e766c18c46a9e606d80cc785d954cb2bf14c | 10 | SHA1 (patch-ae) = 71f79a38bde196410b80dc50d67c343604e206fa | |
11 | SHA1 (patch-src_misc.c) = af6b8c7ccde2dba8bbcdcd91f7e6e37c3d1c5301 | 11 | SHA1 (patch-src_misc.c) = af6b8c7ccde2dba8bbcdcd91f7e6e37c3d1c5301 | |
12 | SHA1 (patch-src_pixmap.c) = 6288ba39bb7c7d80df7a48ff9df53cebee29a84c | 12 | SHA1 (patch-src_pixmap.c) = 6288ba39bb7c7d80df7a48ff9df53cebee29a84c | |
13 | SHA1 (patch-src_xdefaults.c) = dec764692c359503d6bd091dbfd2c44bdf220cf8 | 13 | SHA1 (patch-src_xdefaults.c) = dec764692c359503d6bd091dbfd2c44bdf220cf8 |
@@ -1,23 +1,25 @@ | @@ -1,23 +1,25 @@ | |||
1 | # $NetBSD: options.mk,v 1.3 2016/05/01 19:35:09 dholland Exp $ | 1 | # $NetBSD: options.mk,v 1.4 2018/11/30 17:25:05 nia Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.aterm | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.aterm | |
4 | PKG_SUPPORTED_OPTIONS= aterm-big5 aterm-greek aterm-kanji aterm-xterm-scroll \ | 4 | PKG_SUPPORTED_OPTIONS= aterm-big5 aterm-greek aterm-kanji aterm-xterm-scroll \ | |
5 | afterstep | 5 | afterstep | |
6 | 6 | |||
7 | .include "../../mk/bsd.options.mk" | 7 | .include "../../mk/bsd.options.mk" | |
8 | 8 | |||
9 | .if !empty(PKG_OPTIONS:Mafterstep) | 9 | .if !empty(PKG_OPTIONS:Mafterstep) | |
10 | .include "../../graphics/tiff/buildlink3.mk" | |||
10 | .include "../../wm/afterstep/buildlink3.mk" | 11 | .include "../../wm/afterstep/buildlink3.mk" | |
12 | LDFLAGS.NetBSD+=-lexecinfo | |||
11 | .else | 13 | .else | |
12 | CONFIGURE_ARGS+=--without-afterimage_config --without-afterstep_config | 14 | CONFIGURE_ARGS+=--without-afterimage_config --without-afterstep_config | |
13 | .endif | 15 | .endif | |
14 | 16 | |||
15 | .if !empty(PKG_OPTIONS:Materm-big5) | 17 | .if !empty(PKG_OPTIONS:Materm-big5) | |
16 | CONFIGURE_ARGS+=--enable-big5 | 18 | CONFIGURE_ARGS+=--enable-big5 | |
17 | .endif | 19 | .endif | |
18 | 20 | |||
19 | .if !empty(PKG_OPTIONS:Materm-greek) | 21 | .if !empty(PKG_OPTIONS:Materm-greek) | |
20 | CONFIGURE_ARGS+=--enable-greek | 22 | CONFIGURE_ARGS+=--enable-greek | |
21 | .endif | 23 | .endif | |
22 | 24 | |||
23 | .if !empty(PKG_OPTIONS:Materm-kanji) | 25 | .if !empty(PKG_OPTIONS:Materm-kanji) |
@@ -1,62 +1,49 @@ | @@ -1,62 +1,49 @@ | |||
1 | $NetBSD: patch-aa,v 1.6 2016/05/01 19:56:40 dholland Exp $ | 1 | $NetBSD: patch-aa,v 1.7 2018/11/30 17:25:05 nia Exp $ | |
2 | 2 | |||
3 | - Use ctype.h functions properly. | 3 | - Use ctype.h functions properly. | |
4 | - Silence debug prints. | 4 | - Silence debug prints. | |
5 | - Don't assume :0 if DISPLAY isn't set. | 5 | - Don't assume :0 if DISPLAY isn't set. | |
6 | 6 | |||
7 | --- src/main.c.orig 2005-06-20 16:10:19.000000000 +0000 | 7 | --- src/main.c.orig 2007-08-01 14:08:29.000000000 +0000 | |
8 | +++ src/main.c | 8 | +++ src/main.c | |
9 | @@ -196,7 +196,7 @@ xerror_handler (Display * dpy, XErrorEve | 9 | @@ -196,7 +196,7 @@ xerror_handler (Display * dpy, XErrorEve | |
10 | void | 10 | void | |
11 | color_aliases(int idx) | 11 | color_aliases(int idx) | |
12 | { | 12 | { | |
13 | - if (rs_color[idx] && isdigit(*rs_color[idx])) { | 13 | - if (rs_color[idx] && isdigit(*rs_color[idx])) { | |
14 | + if (rs_color[idx] && isdigit((unsigned char)*rs_color[idx])) { | 14 | + if (rs_color[idx] && isdigit((unsigned char)*rs_color[idx])) { | |
15 | int i = atoi(rs_color[idx]); | 15 | int i = atoi(rs_color[idx]); | |
16 | 16 | |||
17 | if (i >= 8 && i <= 15) { /* bright colors */ | 17 | if (i >= 8 && i <= 15) { /* bright colors */ | |
18 | @@ -1037,12 +1037,10 @@ resize_window(XEvent* ev) | 18 | @@ -1218,7 +1218,7 @@ set_window_color(int idx, const char *co | |
19 | XConfigureEvent *xconf = &(ev->xconfigure); | |||
20 | ||||
21 | while( XCheckTypedWindowEvent( Xdisplay, TermWin.parent, ConfigureNotify, ev ) ); | |||
22 | - fprintf( stderr, "config_geom = %dx%d\n", xconf->width, xconf->height ); | |||
23 | resize_window1(xconf->width, xconf->height); | |||
24 | #if 1 | |||
25 | XTranslateCoordinates (Xdisplay, TermWin.parent, Xroot, 0, 0, &root_x, &root_y, &wdumm); | |||
26 | ||||
27 | - fprintf( stderr, "root_geom = %dx%d%+d%+d, root_size = %dx%d\n", xconf->width, xconf->height, root_x, root_y, XdisplayWidth, XdisplayHeight ); | |||
28 | TermWin.root_x = root_x ; | |||
29 | TermWin.root_y = root_y ; | |||
30 | TermWin.root_width = xconf->width ; | |||
31 | @@ -1215,7 +1213,7 @@ set_window_color(int idx, const char *co | |||
32 | return; | 19 | return; | |
33 | 20 | |||
34 | /* handle color aliases */ | 21 | /* handle color aliases */ | |
35 | - if (isdigit(*color)) { | 22 | - if (isdigit(*color)) { | |
36 | + if (isdigit((unsigned char)*color)) { | 23 | + if (isdigit((unsigned char)*color)) { | |
37 | i = atoi(color); | 24 | i = atoi(color); | |
38 | if (i >= 8 && i <= 15) { /* bright colors */ | 25 | if (i >= 8 && i <= 15) { /* bright colors */ | |
39 | i -= 8; | 26 | i -= 8; | |
40 | @@ -1432,7 +1430,7 @@ change_font(int init, const char *fontna | 27 | @@ -1435,7 +1435,7 @@ change_font(int init, const char *fontna | |
41 | break; | 28 | break; | |
42 | 29 | |||
43 | default: | 30 | default: | |
44 | - if (fontname[1] != '\0' && !isdigit(fontname[1])) | 31 | - if (fontname[1] != '\0' && !isdigit(fontname[1])) | |
45 | + if (fontname[1] != '\0' && !isdigit((unsigned char)fontname[1])) | 32 | + if (fontname[1] != '\0' && !isdigit((unsigned char)fontname[1])) | |
46 | return; | 33 | return; | |
47 | if (idx < 0 || idx >= (NFONTS)) | 34 | if (idx < 0 || idx >= (NFONTS)) | |
48 | return; | 35 | return; | |
49 | @@ -2047,9 +2045,14 @@ main(int argc, char *argv[]) | 36 | @@ -2057,9 +2057,14 @@ main(int argc, char *argv[]) | |
50 | */ | 37 | */ | |
51 | get_options(argc, argv); | 38 | get_options(argc, argv); | |
52 | 39 | |||
53 | - if( display_name == NULL ) | 40 | - if( display_name == NULL ) | |
54 | - if ((display_name = getenv("DISPLAY")) == NULL) | 41 | - if ((display_name = getenv("DISPLAY")) == NULL) | |
55 | - display_name = ":0"; | 42 | - display_name = ":0"; | |
56 | + if( display_name == NULL ) | 43 | + if( display_name == NULL ) | |
57 | + display_name = getenv("DISPLAY"); | 44 | + display_name = getenv("DISPLAY"); | |
58 | + | 45 | + | |
59 | + if( display_name == NULL ) | 46 | + if( display_name == NULL ) | |
60 | + { | 47 | + { | |
61 | + print_error("DISPLAY variable not set and none given"); | 48 | + print_error("DISPLAY variable not set and none given"); | |
62 | + exit(EXIT_FAILURE); | 49 | + exit(EXIT_FAILURE); |
@@ -1,22 +1,22 @@ | @@ -1,22 +1,22 @@ | |||
1 | $NetBSD: patch-ad,v 1.3 2016/05/01 19:59:28 dholland Exp $ | 1 | $NetBSD: patch-ad,v 1.4 2018/11/30 17:25:05 nia Exp $ | |
2 | 2 | |||
3 | wtmpx handling fixes. | 3 | wtmpx handling fixes. | |
4 | 4 | |||
5 | --- src/rxvt.h.orig Sat May 4 08:47:56 2002 | 5 | --- src/rxvt.h.orig 2006-02-17 21:35:37.000000000 +0000 | |
6 | +++ src/rxvt.h | 6 | +++ src/rxvt.h | |
7 | @@ -549,11 +549,13 @@ | 7 | @@ -647,11 +647,13 @@ typedef struct MwmHints { | |
8 | #ifdef WTMP_SUPPORT | 8 | #ifdef WTMP_SUPPORT | |
9 | # ifdef HAVE_UTMPX_H /* means we're on Solaris (or Irix?) */ | 9 | # ifdef HAVE_UTMPX_H /* means we're on Solaris (or Irix?) */ | |
10 | # undef WTMP_FILENAME | 10 | # undef WTMP_FILENAME | |
11 | -# if defined(WTMPX_FILE) || defined(_WTMPX_FILE) | 11 | -# if defined(WTMPX_FILE) || defined(_WTMPX_FILE) | |
12 | +# if defined(WTMPX_FILE) || defined(_WTMPX_FILE) || defined(_PATH_WTMPX) | 12 | +# if defined(WTMPX_FILE) || defined(_WTMPX_FILE) || defined(_PATH_WTMPX) | |
13 | # if defined(WTMPX_FILE) | 13 | # if defined(WTMPX_FILE) | |
14 | # define WTMP_FILENAME WTMPX_FILE | 14 | # define WTMP_FILENAME WTMPX_FILE | |
15 | -# else | 15 | -# else | |
16 | +# elif defined(_WTMPX_FILE) | 16 | +# elif defined(_WTMPX_FILE) | |
17 | # define WTMP_FILENAME _WTMPX_FILE | 17 | # define WTMP_FILENAME _WTMPX_FILE | |
18 | +# else | 18 | +# else | |
19 | +# define WTMP_FILENAME _PATH_WTMPX | 19 | +# define WTMP_FILENAME _PATH_WTMPX | |
20 | # endif | 20 | # endif | |
21 | # define update_wtmp updwtmpx | 21 | # define update_wtmp updwtmpx | |
22 | # else | 22 | # else |
@@ -1,71 +1,62 @@ | @@ -1,71 +1,62 @@ | |||
1 | $NetBSD: patch-ae,v 1.8 2016/05/01 19:56:40 dholland Exp $ | 1 | $NetBSD: patch-ae,v 1.9 2018/11/30 17:25:05 nia Exp $ | |
2 | 2 | |||
3 | - Use pseudo-terminal multiplexor on NetBSD. | 3 | - Use pseudo-terminal multiplexor on NetBSD. | |
4 | - Correctly set the terminal size on FreeBSD and NetBSD. | 4 | - Correctly set the terminal size on FreeBSD and NetBSD. | |
5 | (these parts apparently from upstream) | 5 | (these parts apparently from upstream) | |
6 | 6 | |||
7 | - Use ctype.h functions correctly. | 7 | - Use ctype.h functions correctly. | |
8 | 8 | |||
9 | --- src/command.c.orig 2005-06-21 20:08:16.000000000 +0000 | 9 | --- src/command.c.orig 2006-06-26 18:01:20.000000000 +0000 | |
10 | +++ src/command.c | 10 | +++ src/command.c | |
11 | @@ -542,7 +542,7 @@ get_pty(void) | 11 | @@ -556,7 +556,7 @@ get_pty(void) | |
12 | ptydev = ttydev = _getpty(&fd, O_RDWR | O_NDELAY, 0622, 0); | 12 | ptydev = ttydev = _getpty(&fd, O_RDWR | O_NDELAY, 0622, 0); | |
13 | if (ptydev == NULL) | 13 | if (ptydev == NULL) | |
14 | goto Failed; | 14 | goto Failed; | |
15 | -#elif defined (__svr4__) || defined(__CYGWIN32__) || defined(__lnx21__) | 15 | -#elif defined (__svr4__) || defined(__CYGWIN32__) || defined(__lnx21__) | |
16 | +#elif defined (__svr4__) || defined(__CYGWIN32__) || defined(__lnx21__) || defined(__NetBSD__) | 16 | +#elif defined (__svr4__) || defined(__CYGWIN32__) || defined(__lnx21__) || defined(__NetBSD__) | |
17 | { | 17 | { | |
18 | extern char *ptsname(); | 18 | extern char *ptsname(); | |
19 | 19 | |||
20 | @@ -1085,6 +1085,8 @@ run_command(char *argv[]) | 20 | @@ -1251,9 +1251,9 @@ init_command(char *argv[]) | |
21 | #endif /* SRIOCSREDIR */ | |||
22 | } | |||
23 | ||||
24 | + tt_winsize(0); /* set window size */ | |||
25 | + | |||
26 | /* reset signals and spin off the command interpreter */ | |||
27 | signal(SIGINT, SIG_DFL); | |||
28 | signal(SIGQUIT, SIG_DFL); | |||
29 | @@ -1225,9 +1227,9 @@ init_command(char *argv[]) | |||
30 | meta_char = (Options & Opt_meta8 ? 0x80 : 033); | 21 | meta_char = (Options & Opt_meta8 ? 0x80 : 033); | |
31 | if (rs_modifier | 22 | if (rs_modifier | |
32 | && strlen(rs_modifier) == 4 | 23 | && strlen(rs_modifier) == 4 | |
33 | - && toupper(*rs_modifier) == 'M' | 24 | - && toupper(*rs_modifier) == 'M' | |
34 | - && toupper(rs_modifier[1]) == 'O' | 25 | - && toupper(rs_modifier[1]) == 'O' | |
35 | - && toupper(rs_modifier[2]) == 'D') | 26 | - && toupper(rs_modifier[2]) == 'D') | |
36 | + && toupper((unsigned char)*rs_modifier) == 'M' | 27 | + && toupper((unsigned char)*rs_modifier) == 'M' | |
37 | + && toupper((unsigned char)rs_modifier[1]) == 'O' | 28 | + && toupper((unsigned char)rs_modifier[1]) == 'O' | |
38 | + && toupper((unsigned char)rs_modifier[2]) == 'D') | 29 | + && toupper((unsigned char)rs_modifier[2]) == 'D') | |
39 | switch (rs_modifier[3]) { | 30 | switch (rs_modifier[3]) { | |
40 | case '2': | 31 | case '2': | |
41 | ModXMask = Mod2Mask; | 32 | ModXMask = Mod2Mask; | |
42 | @@ -1302,13 +1304,13 @@ init_xlocale(void) | 33 | @@ -1329,13 +1329,13 @@ init_xlocale(void) | |
43 | for (s = tmp; *s; s++) { | 34 | for (s = tmp; *s; s++) { | |
44 | char *end, *next_s; | 35 | char *end, *next_s; | |
45 | 36 | |||
46 | - for (; *s && isspace(*s); s++) | 37 | - for (; *s && isspace(*s); s++) | |
47 | + for (; *s && isspace((unsigned char)*s); s++) | 38 | + for (; *s && isspace((unsigned char)*s); s++) | |
48 | /* */ ; | 39 | /* */ ; | |
49 | if (!*s) | 40 | if (!*s) | |
50 | break; | 41 | break; | |
51 | for (end = s; (*end && (*end != ',')); end++) | 42 | for (end = s; (*end && (*end != ',')); end++) | |
52 | /* */ ; | 43 | /* */ ; | |
53 | - for (next_s = end--; ((end >= s) && isspace(*end)); end--) | 44 | - for (next_s = end--; ((end >= s) && isspace(*end)); end--) | |
54 | + for (next_s = end--; ((end >= s) && isspace((unsigned char)*end)); end--) | 45 | + for (next_s = end--; ((end >= s) && isspace((unsigned char)*end)); end--) | |
55 | /* */ ; | 46 | /* */ ; | |
56 | *++end = '\0'; | 47 | *++end = '\0'; | |
57 | if (*s) { | 48 | if (*s) { | |
58 | @@ -1340,13 +1342,13 @@ init_xlocale(void) | 49 | @@ -1367,13 +1367,13 @@ init_xlocale(void) | |
59 | unsigned short i; | 50 | unsigned short i; | |
60 | char *end, *next_s; | 51 | char *end, *next_s; | |
61 | 52 | |||
62 | - for (; *s && isspace(*s); s++) | 53 | - for (; *s && isspace(*s); s++) | |
63 | + for (; *s && isspace((unsigned char)*s); s++) | 54 | + for (; *s && isspace((unsigned char)*s); s++) | |
64 | /* */ ; | 55 | /* */ ; | |
65 | if (!*s) | 56 | if (!*s) | |
66 | break; | 57 | break; | |
67 | for (end = s; (*end && (*end != ',')); end++) | 58 | for (end = s; (*end && (*end != ',')); end++) | |
68 | /* */ ; | 59 | /* */ ; | |
69 | - for (next_s = end--; ((end >= s) && isspace(*end));) | 60 | - for (next_s = end--; ((end >= s) && isspace(*end));) | |
70 | + for (next_s = end--; ((end >= s) && isspace((unsigned char)*end));) | 61 | + for (next_s = end--; ((end >= s) && isspace((unsigned char)*end));) | |
71 | *end-- = 0; | 62 | *end-- = 0; |