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

Diff for /src/usr.bin/ssh/scp.c between version 1.85.2.1 and 1.85.2.2

version 1.85.2.1, 2002/03/07 17:37:47 version 1.85.2.2, 2002/05/17 00:03:24
Line 756 
Line 756 
                                 cursize = need;                                  cursize = need;
                         }                          }
                         (void) snprintf(namebuf, need, "%s%s%s", targ,                          (void) snprintf(namebuf, need, "%s%s%s", targ,
                             *targ ? "/" : "", cp);                              strcmp(targ, "/") ? "/" : "", cp);
                         np = namebuf;                          np = namebuf;
                 } else                  } else
                         np = targ;                          np = targ;
Line 1073 
Line 1073 
         off_t cursize, abbrevsize;          off_t cursize, abbrevsize;
         double elapsed;          double elapsed;
         int ratio, barlength, i, remaining;          int ratio, barlength, i, remaining;
         char buf[256];          char buf[512];
   
         if (flag == -1) {          if (flag == -1) {
                 (void) gettimeofday(&start, (struct timezone *) 0);                  (void) gettimeofday(&start, (struct timezone *) 0);
Line 1099 
Line 1099 
                 i = barlength * ratio / 100;                  i = barlength * ratio / 100;
                 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),                  snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
                     "|%.*s%*s|", i,                      "|%.*s%*s|", i,
                     "***************************************"                      "*******************************************************"
                     "***************************************"                      "*******************************************************"
                     "***************************************"                      "*******************************************************"
                     "***************************************",                      "*******************************************************"
                       "*******************************************************"
                       "*******************************************************"
                       "*******************************************************",
                     barlength - i, "");                      barlength - i, "");
         }          }
         i = 0;          i = 0;

Legend:
Removed from v.1.85.2.1  
changed lines
  Added in v.1.85.2.2