[liblouis-liblouisxml] [liblouisutdml] push by mwhapples - May be a fix for the breakage in earlier warning fix on 2014-05-06 13:59 GMT

  • From: liblouisutdml@xxxxxxxxxxxxxx
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Tue, 06 May 2014 13:59:57 +0000

Revision: 83299663ae50
Branch:   default
Author:   Michael Whapples
Date:     Tue May  6 14:04:40 2014 UTC
Log:      May be a fix for the breakage in earlier warning fix
http://code.google.com/p/liblouisutdml/source/detail?r=83299663ae50

Modified:
 /liblouisutdml/transcriber.c

=======================================
--- /liblouisutdml/transcriber.c        Tue May  6 10:39:21 2014 UTC
+++ /liblouisutdml/transcriber.c        Tue May  6 14:04:40 2014 UTC
@@ -4009,10 +4009,10 @@
        memcpy (ud->outbuf1, content, length * CHARSIZE);
       else
         {
-          widechar *tmpContent = malloc(sizeof(content));
+          widechar *tmpContent = malloc(sizeof(widechar) * length);
           if (tmpContent)
             {
-              memcpy(tmpContent, content, sizeof(content));
+              memcpy(tmpContent, content, sizeof(widechar) * length);
lou_dotsToChar (currentTable, tmpContent, ud->outbuf1, length, 0);
               free(tmpContent);
             }
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts:

  • » [liblouis-liblouisxml] [liblouisutdml] push by mwhapples - May be a fix for the breakage in earlier warning fix on 2014-05-06 13:59 GMT - liblouisutdml