home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3217 < prev    next >
Encoding:
Internet Message Format  |  1991-04-19  |  3.1 KB

  1. From: skrenta@blekko.commodore.com (Rich Skrenta)
  2. Newsgroups: alt.sources
  3. Subject: Important patch for Tass 3.2
  4. Message-ID: <163@blekko.commodore.com>
  5. Date: 19 Apr 91 14:22:37 GMT
  6.  
  7. Tass 3.2 will croak if it sees an article that it can't find a From:
  8. or Subject: header in.  Apply this patch and rebuild Tass.  Remove all
  9. of your tass index files since they could potentially be corrupt (and
  10. cause problems later even with the patched Tass).
  11.  
  12. There is also a fix here so delete works like backspace at Tass prompts.
  13.  
  14.  
  15. *** art.c-    Wed Apr 17 20:01:51 1991
  16. --- art.c    Fri Apr 19 01:38:09 1991
  17. ***************
  18. *** 328,335 ****
  19.   
  20.       buf[n - 1] = '\0';
  21.   
  22. !     h->subject = "<no subject>";
  23. !     h->from = "<no from>";
  24.   
  25.       p = buf;
  26.       while (1) {
  27. --- 328,335 ----
  28.   
  29.       buf[n - 1] = '\0';
  30.   
  31. !     h->subject = "";
  32. !     h->from = "";
  33.   
  34.       p = buf;
  35.       while (1) {
  36. ***************
  37. *** 391,397 ****
  38.               iptr = (int *) arts[i].subject;
  39.               iptr--;
  40.   
  41. !             if (*iptr < 0) {
  42.                   fprintf(fp, " %s\n", arts[i].subject);
  43.                   *iptr = realnum;
  44.               } else
  45. --- 391,397 ----
  46.               iptr = (int *) arts[i].subject;
  47.               iptr--;
  48.   
  49. !             if (arts[i].subject[0] == '\0' || *iptr < 0) {
  50.                   fprintf(fp, " %s\n", arts[i].subject);
  51.                   *iptr = realnum;
  52.               } else
  53. ***************
  54. *** 400,406 ****
  55.               iptr = (int *) arts[i].from;
  56.               iptr--;
  57.   
  58. !             if (*iptr < 0) {
  59.                   fprintf(fp, " %s\n", arts[i].from);
  60.                   *iptr = realnum;
  61.               } else
  62. --- 400,406 ----
  63.               iptr = (int *) arts[i].from;
  64.               iptr--;
  65.   
  66. !             if (arts[i].from[0] == '\0' || *iptr < 0) {
  67.                   fprintf(fp, " %s\n", arts[i].from);
  68.                   *iptr = realnum;
  69.               } else
  70. *** prompt.c-    Wed Apr 17 20:01:58 1991
  71. --- prompt.c    Fri Apr 19 10:00:02 1991
  72. ***************
  73. *** 26,36 ****
  74.       len = 1;
  75.       ch = ReadCh();
  76.       while (ch != '\n'&& ch != '\r') {
  77. !         if (ch >= '0' && ch <= '9' && len < 4) {
  78. !             buf[len++] = ch;
  79. !             buf[len] = '\0';
  80. !             putchar(ch);
  81. !         } else if (ch == 8 || ch == 127) {
  82.               if (len) {
  83.                   len--;
  84.                   buf[len] = '\0';
  85. --- 26,32 ----
  86.       len = 1;
  87.       ch = ReadCh();
  88.       while (ch != '\n'&& ch != '\r') {
  89. !         if (ch == 8 || ch == 127) {
  90.               if (len) {
  91.                   len--;
  92.                   buf[len] = '\0';
  93. ***************
  94. *** 50,55 ****
  95. --- 46,55 ----
  96.               }
  97.               buf[0] = '\0';
  98.               len = 0;
  99. +         } else if (ch >= '0' && ch <= '9' && len < 4) {
  100. +             buf[len++] = ch;
  101. +             buf[len] = '\0';
  102. +             putchar(ch);
  103.           } else
  104.               putchar(7);
  105.           fflush(stdout);
  106. ***************
  107. *** 89,99 ****
  108.       len = 0;
  109.       ch = ReadCh();
  110.       while (ch != '\n' && ch != '\r') {
  111. !         if (ch >= ' ' && len < 60) {
  112. !             buf[len++] = ch;
  113. !             buf[len] = '\0';
  114. !             putchar(ch);
  115. !         } else if (ch == 8 || ch == 127) {
  116.               if (len) {
  117.                   len--;
  118.                   buf[len] = '\0';
  119. --- 89,95 ----
  120.       len = 0;
  121.       ch = ReadCh();
  122.       while (ch != '\n' && ch != '\r') {
  123. !         if (ch == 8 || ch == 127) {
  124.               if (len) {
  125.                   len--;
  126.                   buf[len] = '\0';
  127. ***************
  128. *** 113,118 ****
  129. --- 109,118 ----
  130.               }
  131.               buf[0] = '\0';
  132.               len = 0;
  133. +         } else if (ch >= ' ' && len < 60) {
  134. +             buf[len++] = ch;
  135. +             buf[len] = '\0';
  136. +             putchar(ch);
  137.           } else
  138.               putchar(7);
  139.           fflush(stdout);
  140.  
  141. --
  142. skrenta@blekko.commodore.com
  143.