From 0a43faba009ea6322238a44f438898f6c7f38846 Mon Sep 17 00:00:00 2001 From: Y_Less Date: Sun, 10 Sep 2017 14:46:12 +0100 Subject: [PATCH] Document correct state transition target name. --- source/compiler/sc1.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/compiler/sc1.c b/source/compiler/sc1.c index e069e15..65be262 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -6031,7 +6031,6 @@ static void dosleep(void) static void dostate(void) { - char name[sNAMEMAX+1]; constvalue *automaton; constvalue *state; constvalue *stlist; @@ -6100,13 +6099,13 @@ static void dostate(void) listid=-1; } /* if */ listindex=0; - length=strlen(name)+70; /* +70 for the fixed part "\n" */ + length=strlen(state->name)+70; /* +70 for the fixed part "\n" */ /* see if there are any condition strings to attach */ for (index=0; (str=get_autolist(index))!=NULL; index++) length+=strlen(str); if ((doc=(char*)malloc(length*sizeof(char)))!=NULL) { do { - sprintf(doc,"name); if (listid>=0) { /* get the source state */ stateindex=state_listitem(listid,listindex);