- Squashed a small bug which causes a core dump when Arg2Text is called
with 0 arguments.
This commit is contained in:
@ -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]);
|
||||
|
Reference in New Issue
Block a user