warning directs users to the FAQ

This commit is contained in:
albert
2003-02-18 03:51:03 +00:00
parent 4a54e25aca
commit cc5c6955be
7 changed files with 28 additions and 15 deletions

View File

@@ -235,20 +235,21 @@ ENTER(0x220);
P->fgid = strtol(S,&S,10);
continue;
case_Name:{
int i = 0;
while(i < sizeof P->cmd - 1){
unsigned u = 0;
while(u < sizeof P->cmd - 1u){
int c = *S++;
if(unlikely(c=='\n')) break;
if(unlikely(c=='\0')) return; // should never happen
if(unlikely(c=='\0')) break; // should never happen
if(unlikely(c=='\\')){
c = *S++;
if(c=='\n') break; // should never happen
if(!c) break; // should never happen
if(c=='n') c='\n'; // else we assume it is '\\'
}
P->cmd[i++] = c;
P->cmd[u++] = c;
}
P->cmd[i] = '\0';
P->cmd[u] = '\0';
S--; // put back the '\n' or '\0'
continue;
}
case_PPid: