Return to session.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.110, 2001/12/01 21:41:48 | version 1.111, 2001/12/06 18:09:23 | ||
---|---|---|---|
|
|
||
/* Start the shell. Set initial character to '-'. */ | /* Start the shell. Set initial character to '-'. */ | ||
buf[0] = '-'; | buf[0] = '-'; | ||
strncpy(buf + 1, cp, sizeof(buf) - 1); | strlcpy(buf + 1, cp, sizeof(buf) - 1); | ||
buf[sizeof(buf) - 1] = 0; | |||
/* Execute the shell. */ | /* Execute the shell. */ | ||
argv[0] = buf; | argv[0] = buf; |