From 889a754b0048338b80cfc2347456b3d775d657ca Mon Sep 17 00:00:00 2001 From: cvs Date: Fri, 25 Aug 2000 12:51:08 +0000 Subject: [PATCH] - Squashed a small bug which causes a core dump when Arg2Text is called with 0 arguments. --- danu.dat | 2 +- sicsstatus.tcl | 4 ++-- splitter.c | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/danu.dat b/danu.dat index f69c1c40..d64190fa 100644 --- a/danu.dat +++ b/danu.dat @@ -1,3 +1,3 @@ - 7281 + 7288 NEVER, EVER modify or delete this file You'll risk eternal damnation and a reincarnation as a cockroach!|n \ No newline at end of file diff --git a/sicsstatus.tcl b/sicsstatus.tcl index c05429ff..74743b0c 100644 --- a/sicsstatus.tcl +++ b/sicsstatus.tcl @@ -117,7 +117,7 @@ twotheta AccessCode 2.000000 lastscancommand UNKNOWN lastscancommand setAccess 2 banana CountMode timer -banana preset 100.000000 +banana preset 10.000000 sample_mur 0.000000 sample_mur setAccess 2 email UNKNOWN @@ -401,5 +401,5 @@ sample shit at 10.000000 sample setAccess 2 title TopsiTupsiTapsi title setAccess 2 -starttime 2000-06-29 15:01:07 +starttime 2000-08-22 15:23:15 starttime setAccess 2 diff --git a/splitter.c b/splitter.c index ff6a378d..39a6adde 100644 --- a/splitter.c +++ b/splitter.c @@ -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]);