- 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

@ -1,3 +1,3 @@
7281 7288
NEVER, EVER modify or delete this file NEVER, EVER modify or delete this file
You'll risk eternal damnation and a reincarnation as a cockroach!|n You'll risk eternal damnation and a reincarnation as a cockroach!|n

View File

@ -117,7 +117,7 @@ twotheta AccessCode 2.000000
lastscancommand UNKNOWN lastscancommand UNKNOWN
lastscancommand setAccess 2 lastscancommand setAccess 2
banana CountMode timer banana CountMode timer
banana preset 100.000000 banana preset 10.000000
sample_mur 0.000000 sample_mur 0.000000
sample_mur setAccess 2 sample_mur setAccess 2
email UNKNOWN email UNKNOWN
@ -401,5 +401,5 @@ sample shit at 10.000000
sample setAccess 2 sample setAccess 2
title TopsiTupsiTapsi title TopsiTupsiTapsi
title setAccess 2 title setAccess 2
starttime 2000-06-29 15:01:07 starttime 2000-08-22 15:23:15
starttime setAccess 2 starttime setAccess 2

View File

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