find.c | find.c | |||
---|---|---|---|---|
skipping to change at line 281 | skipping to change at line 281 | |||
char brace[2]; | char brace[2]; | |||
char tbuf[MAXBUFSIZE]; | char tbuf[MAXBUFSIZE]; | |||
char *fullname=NULL; | char *fullname=NULL; | |||
char *mip; | char *mip; | |||
char *ip; | char *ip; | |||
char *s; | char *s; | |||
int len; | int len; | |||
int i=0, j=0; | int i=0, j=0; | |||
/* allocate temp working buffer (so dest can be same as source) */ | /* allocate temp working buffer (so dest can be same as source) */ | |||
if( !(fullname=xcalloc(maxlen, sizeof(char))) ) return; | if( !(fullname=(char *)xcalloc(maxlen, sizeof(char))) ) return; | |||
/* process each character */ | /* process each character */ | |||
for(ip=name; *ip; ip++){ | for(ip=name; *ip; ip++){ | |||
/* if its not beginning of an env, just store and loop */ | /* if its not beginning of an env, just store and loop */ | |||
if( *ip != '$' ){ | if( *ip != '$' ){ | |||
fullname[i++] = *ip; | fullname[i++] = *ip; | |||
fullname[i] = '\0'; | fullname[i] = '\0'; | |||
} | } | |||
else{ | else{ | |||
mip = ip; | mip = ip; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |