bugfix M.Z.

This commit is contained in:
cvs
2004-11-17 11:28:19 +00:00
parent f2a10df78b
commit 075fa10e23

View File

@ -336,9 +336,9 @@ typedef enum _CharType {eSpace, eNum,eeText,eQuote} CharType;
{
int i, iBufCount = 0;
strcpy(buf,"\0");
if(argc < 1)
{
strcpy(buf,"\0");
return 1;
}
if(strlen(argv[0]) < iBufLen)
@ -353,17 +353,13 @@ typedef enum _CharType {eSpace, eNum,eeText,eQuote} CharType;
for(i = 1; i < argc; i++)
{
strcat(buf," ");
iBufCount += strlen(argv[i]) + 1;
if(iBufCount >= iBufLen)
{
return 0;
}
else
{
strcat(buf," ");
strcat(buf,argv[i]);
/* strcat(buf," "); */
}
}
return 1;
}