X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=src%2Fexec.c;h=3e4b1b9fc7922bc559ece93ad1d12e66aed68258;hp=9f01dbd9f8201278bff8d4e0976085d13f766c90;hb=e24285f0509319319aef28a188b7c01ba7e22bf1;hpb=7a360e7f77580a2504ed331c6b23c392bd62f4cc diff --git a/src/exec.c b/src/exec.c index 9f01dbd..3e4b1b9 100644 --- a/src/exec.c +++ b/src/exec.c @@ -269,7 +269,7 @@ void exec() { WORD op, r_r1, x_r2, val; CMDTYPE cmdtype; - char *errpr = malloc(8); + char *errpr = malloc(CERRSTRSIZE + 1); clock_t clock_begin, clock_end; if((&execmode)->trace) { @@ -466,7 +466,9 @@ void exec() do { clock_end = clock(); } while(clock_end - clock_begin < CLOCKS_PER_SEC / clocks); -/* printf("PR:%04X; time: %f\n", PR, (double)((clock_end - clock_begin) * CLOCKS_PER_SEC)); */ + #if 0 + printf("PR:%04X; time: %f\n", PR, (double)((clock_end - clock_begin) * CLOCKS_PER_SEC)); + #endif } execerr: fprintf(stderr, "Execute error - %d: %s\n", cerrno, cerrmsg);