diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/windows-nat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index b98848b..8631a1b 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -711,10 +711,10 @@ windows_make_so (const char *name, LPVOID load_addr) #else if (buf[0]) { - char name[SO_NAME_MAX_PATH_SIZE]; - cygwin_conv_path (CCP_WIN_W_TO_POSIX, buf, name, + char cname[SO_NAME_MAX_PATH_SIZE]; + cygwin_conv_path (CCP_WIN_W_TO_POSIX, buf, cname, SO_NAME_MAX_PATH_SIZE); - so->name = name; + so->name = cname; } else { |