[Scummvm-cvs-logs] SF.net SVN: scummvm:[48511] scummvm/trunk/engines/sci/engine/seg_manager. cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sun Apr 4 14:25:52 CEST 2010


Revision: 48511
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48511&view=rev
Author:   m_kiewitz
Date:     2010-04-04 12:25:52 +0000 (Sun, 04 Apr 2010)

Log Message:
-----------
SCI: put an ending NUL in strncpy, fixes castle of brain scrolling problem - should be verified by the vm gurus (waltervn and lskovlun)

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/seg_manager.cpp

Modified: scummvm/trunk/engines/sci/engine/seg_manager.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/seg_manager.cpp	2010-04-04 11:53:19 UTC (rev 48510)
+++ scummvm/trunk/engines/sci/engine/seg_manager.cpp	2010-04-04 12:25:52 UTC (rev 48511)
@@ -648,6 +648,8 @@
 			if (!src[i])
 				break;
 		}
+		// Put an ending NUL to terminate the string
+		setChar(dest_r, n, 0);
 	}
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list