Compilation warning fix
[clinton/Virtual-Jaguar-Rx.git] / src / debugger / localbrowser.cpp
index b00bd70..9cafa71 100644 (file)
@@ -4,11 +4,13 @@
 // by Jean-Paul Mari\r
 //\r
 // JPM = Jean-Paul Mari <djipi.mari@gmail.com>\r
+//  RG = Richard Goedeken\r
 //\r
 // Who  When        What\r
 // ---  ----------  -----------------------------------------------------------\r
 // JPM  11/03/2017  Created this file\r
 // JPM  Sept./2018  Added a status bar and better status report, and set information values in a tab\r
+//  RG   Jan./2021  Linux build fixes\r
 //\r
 \r
 // STILL TO DO:\r
@@ -19,6 +21,7 @@
 // To add a filter\r
 //\r
 \r
+#include <stdlib.h>\r
 \r
 #include "debugger/localbrowser.h"\r
 #include "memory.h"\r
@@ -208,7 +211,8 @@ void LocalBrowserWindow::RefreshContents(void)
                                                if ((LocalInfo[i].Op >= DBG_OP_reg0) && (LocalInfo[i].Op <= DBG_OP_reg31))\r
                                                {\r
                                                        LocalInfo[i].PtrCPURegisterName = (char *)CPURegName[(LocalInfo[i].Op - DBG_OP_reg0)];\r
-                                                       PtrValue = itoa(m68k_get_reg(NULL, (m68k_register_t)((size_t)M68K_REG_D0 + (LocalInfo[i].Op - DBG_OP_reg0))), Value1, 10);\r
+                                                       sprintf(Value1, "%d", m68k_get_reg(NULL, (m68k_register_t)((size_t)M68K_REG_D0 + (LocalInfo[i].Op - DBG_OP_reg0))));\r
+                                                       PtrValue = Value1;\r
                                                }\r
                                                else\r
                                                {\r