projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2a4cd53
)
Fix indexing error in archive loader
author
Ian Lynagh
<igloo@earth.li>
Tue, 21 Sep 2010 12:16:42 +0000
(12:16 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Tue, 21 Sep 2010 12:16:42 +0000
(12:16 +0000)
rts/Linker.c
patch
|
blob
|
history
diff --git
a/rts/Linker.c
b/rts/Linker.c
index
cb10cc9
..
33daea3
100644
(file)
--- a/
rts/Linker.c
+++ b/
rts/Linker.c
@@
-1738,7
+1738,7
@@
loadArchive( char *path )
isObject = 0;
for (n = 0; n < (int)fileNameSize - 1; n++) {
isObject = 0;
for (n = 0; n < (int)fileNameSize - 1; n++) {
- if ((file[n] == '.') && (file[n] == 'o')) {
+ if ((file[n] == '.') && (file[n + 1] == 'o')) {
isObject = 1;
break;
}
isObject = 1;
break;
}