[commit] r1493 - trunk/SDK/BON/Common

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Thu Sep 1 09:47:31 CDT 2011


Author: ksmyth
Date: Thu Sep  1 09:47:31 2011
New Revision: 1493

Log:
Dont pass raw strings into *printf, they may contain %

Modified:
   trunk/SDK/BON/Common/Console.h

Modified: trunk/SDK/BON/Common/Console.h
==============================================================================
--- trunk/SDK/BON/Common/Console.h	Wed Aug 31 23:03:32 2011	(r1492)
+++ trunk/SDK/BON/Common/Console.h	Thu Sep  1 09:47:31 2011	(r1493)
@@ -19,17 +19,17 @@
 				gmeoleapp.Release();
 		}
 
-		static void WriteLine(const CString& message, msgtype_enum type)
+		static void WriteLine(const CString& message, msgtype_enum type=MSG_INFO)
 		{
 			if (gmeoleapp == 0) {
 				switch (type) {
 				case MSG_NORMAL:
 				case MSG_INFO:
 				case MSG_WARNING:
-					_tprintf(message);
+					_tprintf("%s\n", message);
 					break;
 				case MSG_ERROR:
-					_ftprintf(stderr, message);
+					_ftprintf(stderr, "%s\n", message);
 					break;
 				}
 			}


More information about the gme-commit mailing list