diff options
author | Sven Wegener <swegener@gentoo.org> | 2005-01-17 19:55:00 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2005-01-17 19:55:00 +0000 |
commit | ced28ab9add59acab47bd18fe9d14d5aa6d27592 (patch) | |
tree | eed1f4683d97b86e1b3e746212d0c74560cd786f /net-nntp/knews/files/knews-1.0.1b-r1.patch | |
parent | Moved net-news/leafnode to net-nntp/leafnode (diff) | |
download | gentoo-2-ced28ab9add59acab47bd18fe9d14d5aa6d27592.tar.gz gentoo-2-ced28ab9add59acab47bd18fe9d14d5aa6d27592.tar.bz2 gentoo-2-ced28ab9add59acab47bd18fe9d14d5aa6d27592.zip |
Moved from net-news/knews to net-nntp/knews.
Diffstat (limited to 'net-nntp/knews/files/knews-1.0.1b-r1.patch')
-rw-r--r-- | net-nntp/knews/files/knews-1.0.1b-r1.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/net-nntp/knews/files/knews-1.0.1b-r1.patch b/net-nntp/knews/files/knews-1.0.1b-r1.patch new file mode 100644 index 000000000000..81447c4fcc07 --- /dev/null +++ b/net-nntp/knews/files/knews-1.0.1b-r1.patch @@ -0,0 +1,32 @@ +--- /util/knewsd.c Mon Aug 31 15:40:05 1998 ++++ util/knewsd.c Thu Aug 1 18:16:04 2002 +@@ -619,6 +619,7 @@ + FILE *fp = NULL; + long first, last, no; + char *c; ++ char *lfl = NULL; + + if (!group_path) { + printf(CODE_TO_STR(NNTP_ERR_NCING) " Not in a newsgroup.\r\n"); +@@ -677,15 +678,18 @@ + if (no > last) + break; + ++ lfl = strchr(buffer, '\n'); ++ if (lfl) ++ lfl[0]=0; + fputs(buffer, stdout); +- if (!strchr(buffer, '\n')) { ++ if (!lfl) { + int ch; + + while ((ch = getc(fp)) != EOF && ch != '\n') + putchar(ch); +- +- printf("\r\n"); + } ++ ++ printf("\r\n"); + } + + fclose(fp); |