projects
/
drnoksnes
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
workaround a problem with the harmattan gcc
[drnoksnes]
/
hacks.cpp
diff --git
a/hacks.cpp
b/hacks.cpp
index
191c704
..
7226738
100644
(file)
--- a/
hacks.cpp
+++ b/
hacks.cpp
@@
-151,7
+151,8
@@
void S9xHacksLoadFile(const char * file)
line = (char*) malloc(kLineBufferSize + 1);
do {
- fgets(line, kLineBufferSize, fp);
+ line = fgets(line, kLineBufferSize, fp);
+ if (!line) break;
char *pos = strchr(line, '|');
if (!pos) continue;