sumom****@users*****
sumom****@users*****
2009年 5月 15日 (金) 12:22:53 JST
Index: julius4/adinrec/adinrec.c diff -u julius4/adinrec/adinrec.c:1.3 julius4/adinrec/adinrec.c:1.4 --- julius4/adinrec/adinrec.c:1.3 Thu Sep 25 14:00:02 2008 +++ julius4/adinrec/adinrec.c Fri May 15 12:22:53 2009 @@ -12,7 +12,7 @@ * @author Akinobu LEE * @date Wed Mar 23 20:33:01 2005 * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * */ /* @@ -115,7 +115,11 @@ if (stout) { fd = 1; } else { - if ((fd = creat(filename, 0644)) == -1) { + if ((fd = open(filename, O_CREAT | O_RDWR +#ifdef O_BINARY + | O_BINARY +#endif + , 0644)) == -1) { perror("adinrec"); return -1; } @@ -247,7 +251,7 @@ } /* exit if no file name specified */ - if (filename == NULL) { + if (filename == NULL && stout == FALSE) { opt_help(jconf, NULL, 0); return -1; }