- Squashed a small bug which causes a core dump when Arg2Text is called

with 0 arguments.
This commit is contained in:
cvs
2000-08-25 12:51:08 +00:00
parent f3e4add7b5
commit 889a754b00
3 changed files with 8 additions and 3 deletions

View File

@ -336,6 +336,11 @@ typedef enum _CharType {eSpace, eNum,eeText,eQuote} CharType;
{
int i, iBufCount = 0;
if(argc < 1)
{
strcpy(buf,"\0");
return 1;
}
if(strlen(argv[0]) < iBufLen)
{
strcpy(buf, argv[0]);