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

Diff for /src/usr.bin/rlogin/Attic/kcmd.c between version 1.4 and 1.5

version 1.4, 1996/08/18 18:21:24 version 1.5, 1996/10/16 06:17:56
Line 108 
Line 108 
                 herror(*ahost);                  herror(*ahost);
                 return (-1);                  return (-1);
         }          }
         host_save = malloc(strlen(hp->h_name) + 1);          if ((host_save = strdup(hp->h_name)) == NULL) {
         strcpy(host_save, hp->h_name);                  warn("can't allocate memory");
                   return (-1);
           }
         *ahost = host_save;          *ahost = host_save;
   
         /* If realm is null, look up from table */          /* If realm is null, look up from table */

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5