[BACK]Return to ruserpass.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ftp

Diff for /src/usr.bin/ftp/ruserpass.c between version 1.7 and 1.8

version 1.7, 1997/04/10 00:17:10 version 1.8, 1997/04/23 20:33:21
Line 191 
Line 191 
                                 if (c != ' ' && c != '\t')                                  if (c != ' ' && c != '\t')
                                         break;                                          break;
                         if (c == EOF || c == '\n') {                          if (c == EOF || c == '\n') {
                                 puts("Missing macdef name argument.");                                  fputs("Missing macdef name argument.\n", ttyout);
                                 goto bad;                                  goto bad;
                         }                          }
                         if (macnum == 16) {                          if (macnum == 16) {
                                 puts(                                  fputs(
 "Limit of 16 macros have already been defined.");  "Limit of 16 macros have already been defined.\n", ttyout);
                                 goto bad;                                  goto bad;
                         }                          }
                         tmp = macros[macnum].mac_name;                          tmp = macros[macnum].mac_name;
Line 206 
Line 206 
                                 *tmp++ = c;                                  *tmp++ = c;
                         }                          }
                         if (c == EOF) {                          if (c == EOF) {
                                 puts(                                  fputs(
 "Macro definition missing null line terminator.");  "Macro definition missing null line terminator.\n", ttyout);
                                 goto bad;                                  goto bad;
                         }                          }
                         *tmp = '\0';                          *tmp = '\0';
Line 215 
Line 215 
                                 while ((c=getc(cfile)) != EOF && c != '\n');                                  while ((c=getc(cfile)) != EOF && c != '\n');
                         }                          }
                         if (c == EOF) {                          if (c == EOF) {
                                 puts(                                  fputs(
 "Macro definition missing null line terminator.");  "Macro definition missing null line terminator.\n", ttyout);
                                 goto bad;                                  goto bad;
                         }                          }
                         if (macnum == 0) {                          if (macnum == 0) {
Line 229 
Line 229 
                         tmp = macros[macnum].mac_start;                          tmp = macros[macnum].mac_start;
                         while (tmp != macbuf + 4096) {                          while (tmp != macbuf + 4096) {
                                 if ((c=getc(cfile)) == EOF) {                                  if ((c=getc(cfile)) == EOF) {
                                 puts(                                  fputs(
 "Macro definition missing null line terminator.");  "Macro definition missing null line terminator.\n", ttyout);
                                         goto bad;                                          goto bad;
                                 }                                  }
                                 *tmp = c;                                  *tmp = c;
Line 244 
Line 244 
                                 tmp++;                                  tmp++;
                         }                          }
                         if (tmp == macbuf + 4096) {                          if (tmp == macbuf + 4096) {
                                 puts("4K macro buffer exceeded.");                                  fputs("4K macro buffer exceeded.\n", ttyout);
                                 goto bad;                                  goto bad;
                         }                          }
                         break;                          break;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8