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

Diff for /src/usr.bin/telnet/utilities.c between version 1.6 and 1.7

version 1.6, 2001/11/19 19:02:16 version 1.7, 2002/02/01 06:59:17
Line 90 
Line 90 
  * The following are routines used to print out debugging information.   * The following are routines used to print out debugging information.
  */   */
   
 unsigned char NetTraceFile[256] = "(standard output)";  unsigned char NetTraceFile[MAXPATHLEN] = "(standard output)";
   
     void      void
 SetNetTrace(file)  SetNetTrace(file)
Line 101 
Line 101 
     if (file  && (strcmp(file, "-") != 0)) {      if (file  && (strcmp(file, "-") != 0)) {
         NetTrace = fopen(file, "w");          NetTrace = fopen(file, "w");
         if (NetTrace) {          if (NetTrace) {
             strcpy((char *)NetTraceFile, file);              strlcpy((char *)NetTraceFile, file, sizeof(NetTraceFile));
             return;              return;
         }          }
         fprintf(stderr, "Cannot open %s.\n", file);          fprintf(stderr, "Cannot open %s.\n", file);

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