403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/emulators/vba/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/emulators/vba/files/patch-src-sdl_debugger.cpp
--- src/sdl/debugger.cpp.orig	2007-10-04 01:11:33.000000000 +0200
+++ src/sdl/debugger.cpp	2007-10-04 01:12:22.000000000 +0200
@@ -950,9 +950,9 @@
 {
   u32 address = 0;
   if(mem >= (u32*)&workRAM[0] && mem <= (u32*)&workRAM[0x3ffff])
-    address = 0x2000000 + ((u32)mem - (u32)&workRAM[0]);
+    address = 0x2000000 + (u32)((u8 *)mem - &workRAM[0]);
   else
-    address = 0x3000000 + ((u32)mem - (u32)&internalRAM[0]);
+    address = 0x3000000 + (u32)((u8 *)mem - &internalRAM[0]);
 
   if(size == 2)
     printf("Breakpoint (on write) address %08x old:%08x new:%08x\n", 
@@ -1389,7 +1389,7 @@
 {
   char buffer[10];
   printf("Are you sure you want to quit (y/n)? ");
-  fgets(buffer, 1024, stdin);
+  fgets(buffer, sizeof(buffer), stdin);
   
   if(buffer[0] == 'y' || buffer[0] == 'Y') {
     debugger = false;

Youez - 2016 - github.com/yon3zu
LinuXploit