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

Diff for /src/usr.bin/ssh/misc.c between version 1.99 and 1.100

version 1.99, 2015/10/24 08:34:09 version 1.100, 2015/12/04 21:51:06
Line 587 
Line 587 
                 /* %% case */                  /* %% case */
                 if (*string == '%')                  if (*string == '%')
                         goto append;                          goto append;
                   if (*string == '\0')
                           fatal("%s: invalid format", __func__);
                 for (j = 0; j < num_keys; j++) {                  for (j = 0; j < num_keys; j++) {
                         if (strchr(keys[j].key, *string) != NULL) {                          if (strchr(keys[j].key, *string) != NULL) {
                                 i = strlcat(buf, keys[j].repl, sizeof(buf));                                  i = strlcat(buf, keys[j].repl, sizeof(buf));

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100