diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-07-25 03:14:56 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-07-25 03:14:56 -0400 |
commit | aa3258c631eaca9dc2e7e2590b8778b827006144 (patch) | |
tree | 8fc25814a576a0db800da7a1421f6a3c76a2ae6d /src/LYNews.c | |
parent | 5488a2e17cfeff78f8927f652ecb9750d7a28c29 (diff) | |
download | lynx-snapshots-aa3258c631eaca9dc2e7e2590b8778b827006144.tar.gz |
snapshot of project "lynx", label v2-8-1dev_18
Diffstat (limited to 'src/LYNews.c')
-rw-r--r-- | src/LYNews.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/LYNews.c b/src/LYNews.c index 45d560cb..3237a0ea 100644 --- a/src/LYNews.c +++ b/src/LYNews.c @@ -47,6 +47,7 @@ PUBLIC char *LYNewsPost ARGS2( char user_input[1024]; char CJKinput[1024]; char *cp = NULL; + CONST char *kp = NULL; int c = 0; /* user input */ FILE *fd = NULL; char my_tempfile[256]; @@ -140,15 +141,15 @@ PUBLIC char *LYNewsPost ARGS2( addstr("\n\n Please provide or edit the Subject: header\n"); strcpy(user_input, "Subject: "); if ((followup == TRUE && nhist > 0) && - (cp = HText_getTitle()) != NULL) { + (kp = HText_getTitle()) != NULL) { /* * Add the default subject. */ - cp = LYSkipBlanks(cp); - if (strncasecomp(cp, "Re:", 3)) { + kp = LYSkipCBlanks(kp); + if (strncasecomp(kp, "Re:", 3)) { strcat(user_input, "Re: "); } - strcat(user_input, cp); + strcat(user_input, kp); } cp = NULL; if (LYgetstr(user_input, VISIBLE, |