[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#697350: Patch for the problem <erfolgreich auf Virenfreiheit geprueft>



This patch works for me: Adjust the length of the parameter string copy
by 1 though that is not very neat because of (again) fixed string length...
--- ebook-speaker-2.0.orig/eBook-speaker.c
+++ ebook-speaker-2.0/eBook-speaker.c
@@ -1325,7 +1325,7 @@ void read_rc ()
          p += 9;
          while (*p == ' ' || *p == '\t' || *p == '\n')
             p++;
-         strncpy (dc_language, p, 5);
+         strncpy (dc_language, p, 6);
          p = dc_language;
          while (*p != ' ' && *p != '\t' && *p != 0)
             p++;

Reply to: