Return to stackmachine.c CVS log | Up to [local] / OpenXM / src / kan96xx / Kan |
version 1.25, 2004/09/12 10:22:50 | version 1.26, 2004/09/16 02:22:03 | ||
---|---|---|---|
|
|
||
/* $OpenXM: OpenXM/src/kan96xx/Kan/stackmachine.c,v 1.24 2004/09/12 08:55:36 takayama Exp $ */ | /* $OpenXM: OpenXM/src/kan96xx/Kan/stackmachine.c,v 1.25 2004/09/12 10:22:50 takayama Exp $ */ | ||
/* stackmachin.c */ | /* stackmachin.c */ | ||
#include <stdio.h> | #include <stdio.h> | ||
|
|
||
if (t == NULL) { | if (t == NULL) { | ||
s[p] = ';'; s[p+1] = 0; | s[p] = ';'; s[p+1] = 0; | ||
break; | break; | ||
}else if ((strlen(t) + p -10) > TRACE_MSG_SIZE) { | }else if ((strlen(t) + p) > (TRACE_MSG_SIZE-10)) { | ||
/* fprintf(stderr,"p=%d, TraceNameStackp=%d, strlen(t)=%d, t=%s\n",p,TraceNameStackp,strlen(t),t); */ | /* fprintf(stderr,"p=%d, TraceNameStackp=%d, strlen(t)=%d, t=%s\n",p,TraceNameStackp,strlen(t),t); */ | ||
strcpy(&(s[p])," ..."); | strcpy(&(s[p])," ..."); | ||
break; | break; | ||
} | } |