projects
/
slink.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef5253e
)
Import fix
master
author
Robert Pengelly
<robertapengelly@hotmail.com>
Sun, 12 Jul 2026 01:22:34 +0000
(
02:22
+0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Sun, 12 Jul 2026 01:22:34 +0000
(
02:22
+0100)
pe.c
patch
|
blob
|
history
diff --git
a/pe.c
b/pe.c
index 158ed1f4a3297167b59fd7f9c783fb00ea067928..f66bac8b8da243b99fe484fbb1d8fc60c575aa27 100644
(file)
--- a/
pe.c
+++ b/
pe.c
@@
-2677,12
+2677,12
@@
static void import_generate_import (const char *import_name, short ordinal_hint,
}
- symbol->name = xmalloc (
6
+ strlen (import_name) + 1);
+ symbol->name = xmalloc (
7
+ strlen (import_name) + 1);
if (state->leading_underscore) {
- sprintf (symbol->name, "__imp_%s", import_name);
+ sprintf (symbol->name, "__imp_
_
%s", import_name);
} else {
- sprintf (symbol->name, "__imp%s", import_name);
+ sprintf (symbol->name, "__imp
_
%s", import_name);
}
symbol->value = 0;