sphinx: handle logging multiple empty lines correctly.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Tue, 3 Jun 2014 15:00:45 +0000 (18:00 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Wed, 4 Jun 2014 13:05:45 +0000 (16:05 +0300)
src/plugins/speech-to-text/sphinx/logger.c

index 094a122..57eb102 100644 (file)
@@ -117,6 +117,10 @@ static void push_log(logger_t *logger)
         }
 
         b = e + 1;
+
+        while (*b == '\n')
+            b++;
+
         n = logger->n - (b - logger->buf);
 
         if (n <= 0)