OSDN Git Service
(root)
/
csp-qt
/
common_source_project-fm7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16e2231
)
[EMU][General] Fix a security issue.
author
K.Ohta
<whatisthis.sowhat@gmail.com>
Sun, 24 May 2015 07:32:24 +0000
(16:32 +0900)
committer
K.Ohta
<whatisthis.sowhat@gmail.com>
Sun, 24 May 2015 07:32:24 +0000
(16:32 +0900)
source/src/emu.cpp
patch
|
blob
|
history
diff --git
a/source/src/emu.cpp
b/source/src/emu.cpp
index
12a0b00
..
3bf16aa
100644
(file)
--- a/
source/src/emu.cpp
+++ b/
source/src/emu.cpp
@@
-564,7
+564,7
@@
static bool hex2bin(_TCHAR* file_path, _TCHAR* dest_path)
int length = 0;
char line[1024];
uint8 buffer[0x10000];
- memset(buffer,
sizeof(buffer), 0xff
);
+ memset(buffer,
0xff, sizeof(buffer)
);
while(fio_s->Fgets(line, sizeof(line)) != NULL) {
if(line[0] != ':') continue;
int bytes = hex2uint8(line + 1);