diff options
Diffstat (limited to 'src/cmd/ld/pe.c')
| -rw-r--r-- | src/cmd/ld/pe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/ld/pe.c b/src/cmd/ld/pe.c index c225d0cd4..3a3099d04 100644 --- a/src/cmd/ld/pe.c +++ b/src/cmd/ld/pe.c @@ -31,7 +31,7 @@ new_section(char *name, int size, int noraw) errorexit(); } h = &sh[nsect++]; - strncpy(h->Name, name, sizeof(h->Name)); + strncpy((char*)h->Name, name, sizeof(h->Name)); h->VirtualSize = size; if(!sect_virt_begin) sect_virt_begin = 0x1000; |
