[Julius-cvs 186] CVS update: julius4/libjulius/src

Back to archive index

sumom****@users***** sumom****@users*****
2008年 6月 19日 (木) 01:20:55 JST


Index: julius4/libjulius/src/m_jconf.c
diff -u julius4/libjulius/src/m_jconf.c:1.3 julius4/libjulius/src/m_jconf.c:1.4
--- julius4/libjulius/src/m_jconf.c:1.3	Wed Feb 13 17:45:27 2008
+++ julius4/libjulius/src/m_jconf.c	Thu Jun 19 01:20:55 2008
@@ -37,7 +37,7 @@
  * @author Akinobu Lee
  * @date   Thu May 12 14:16:18 2005
  *
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
  * 
  */
 /*
@@ -321,8 +321,8 @@
       return str;
     }
     strncpy(env, bgn, len);
-    env[len+1] = '\0';
-    
+    env[len] = '\0';
+
     /* get value */
     if ((envval = getenv(env)) == NULL) {
       jlog("ERROR: failed to expand variable: no such variable \"%s\"\n", env);
@@ -348,6 +348,7 @@
     }
 
     /* go on to next */
+    if (eb != 0) p++;
   }
 
   free(str);


Julius-cvs メーリングリストの案内
Back to archive index