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

Diff for /src/usr.bin/ssh/Attic/key.c between version 1.53 and 1.54

version 1.53, 2003/06/24 08:23:46 version 1.54, 2003/07/09 13:58:19
Line 236 
Line 236 
         for (i = 0; i < dgst_raw_len; i++) {          for (i = 0; i < dgst_raw_len; i++) {
                 char hex[4];                  char hex[4];
                 snprintf(hex, sizeof(hex), "%02x:", dgst_raw[i]);                  snprintf(hex, sizeof(hex), "%02x:", dgst_raw[i]);
                 strlcat(retval, hex, dgst_raw_len * 3);                  strlcat(retval, hex, dgst_raw_len * 3 + 1);
         }          }
   
           /* Remove the trailing ':' character */
         retval[(dgst_raw_len * 3) - 1] = '\0';          retval[(dgst_raw_len * 3) - 1] = '\0';
         return retval;          return retval;
 }  }

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54