sumom****@users*****
sumom****@users*****
2009年 6月 16日 (火) 20:03:37 JST
Index: julius4/adintool/adintool.c diff -u julius4/adintool/adintool.c:1.7 julius4/adintool/adintool.c:1.8 --- julius4/adintool/adintool.c:1.7 Fri May 15 12:22:53 2009 +++ julius4/adintool/adintool.c Tue Jun 16 20:03:37 2009 @@ -35,7 +35,7 @@ * @author Akinobu LEE * @date Wed Mar 23 20:43:32 2005 * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * */ /* @@ -204,7 +204,7 @@ { char *p, *q; if (speech_output == SPOUT_ADINNET) { - p = (char *)malloc(strlen(arg[0] + 1)); + p = (char *)malloc(strlen(arg[0]) + 1); strcpy(p, arg[0]); for (q = strtok(p, ","); q; q = strtok(NULL, ",")) { if (adinnet_servnum >= MAXCONNECTION) { @@ -249,7 +249,7 @@ { char *p, *q; - p = (char *)malloc(strlen(arg[0] + 1)); + p = (char *)malloc(strlen(arg[0]) + 1); strcpy(p, arg[0]); for (q = strtok(p, ","); q; q = strtok(NULL, ",")) { if (adinnet_portnum >= MAXCONNECTION) {