File: rcstuff.c.rej

package info (click to toggle)
trn 3.6-18
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 1,656 kB
  • ctags: 1,535
  • sloc: ansic: 25,214; sh: 5,081; makefile: 1,030; yacc: 660
file content (54 lines) | stat: -rw-r--r-- 1,417 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
***************
*** 347,357 ****
         } else {
  #ifdef VERBOSE
         IF(verbose)
-            sprintf(promptbuf,"\nNewsgroup %s not in .newsrc -- subscribe?",ngname);
         ELSE
  #endif
  #ifdef TERSE
-            sprintf(promptbuf,"\nSubscribe %s?",ngname);
  #endif
  reask_add:
         in_char(promptbuf,'A',"ynYN");
--- 348,358 ----
         } else {
  #ifdef VERBOSE
         IF(verbose)
+            snprintf(promptbuf,PBLEN,"\nNewsgroup %s not in .newsrc -- subscribe?",ngname);
         ELSE
  #endif
  #ifdef TERSE
+            snprintf(promptbuf,PBLEN,"\nSubscribe %s?",ngname);
  #endif
  reask_add:
         in_char(promptbuf,'A',"ynYN");
***************
*** 418,430 ****
      else if (rcchar[ng] == NEGCHAR) {  /* unsubscribed? */
  #ifdef VERBOSE
         IF(verbose)
-            sprintf(promptbuf,
  "\nNewsgroup %s is unsubscribed -- resubscribe?",ngname)
    FLUSH;
         ELSE
  #endif
  #ifdef TERSE
-            sprintf(promptbuf,"\nResubscribe %s?",ngname)
               FLUSH;
  #endif
  reask_unsub:
--- 419,431 ----
      else if (rcchar[ng] == NEGCHAR) {  /* unsubscribed? */
  #ifdef VERBOSE
         IF(verbose)
+            snprintf(promptbuf, PBLEN,
  "\nNewsgroup %s is unsubscribed -- resubscribe?",ngname)
    FLUSH;
         ELSE
  #endif
  #ifdef TERSE
+            snprintf(promptbuf,PBLEN,"\nResubscribe %s?",ngname)
               FLUSH;
  #endif
  reask_unsub: