[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.86 and 1.87

version 1.86, 2001/12/05 03:56:39 version 1.87, 2002/03/30 17:45:46
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.86  
changed lines
  Added in v.1.87