[liblouis-liblouisxml] [liblouis] r779 committed - fixed crash with pass1only

  • From: liblouis@xxxxxxxxxxxxxx
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Thu, 06 Sep 2012 15:39:52 +0000

Revision: 779
Author:   john.boyer@xxxxxxxxxxxxxxxxx
Date:     Thu Sep  6 08:39:40 2012
Log:      fixed crash with pass1only
http://code.google.com/p/liblouis/source/detail?r=779

Modified:
 /trunk/liblouis/lou_translateString.c

=======================================
--- /trunk/liblouis/lou_translateString.c       Thu Jun 14 07:39:52 2012
+++ /trunk/liblouis/lou_translateString.c       Thu Sep  6 08:39:40 2012
@@ -148,6 +148,7 @@
   if ((mode & pass1Only))
     {
       currentOutput = passbuf1;
+      memcpy (prevSrcMapping, srcMapping, destmax * sizeof (int));
       goodTrans = translateString ();
       currentPass = 5;         /*Certainly > table->numPasses */
     }
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] [liblouis] r779 committed - fixed crash with pass1only - liblouis