projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[gdb/testsuite] Add PR number in KFAIL in gdb.ada/array_ptr_renaming.exp
[deliverable/binutils-gdb.git]
/
binutils
/
winduni.c
diff --git
a/binutils/winduni.c
b/binutils/winduni.c
index b0b729ec836286937d59fb9a924c352f06c012d5..36d699358b8ed715014932e99fabd30dd1acba75 100644
(file)
--- a/
binutils/winduni.c
+++ b/
binutils/winduni.c
@@
-1,5
+1,5
@@
/* winduni.c -- unicode support for the windres program.
/* winduni.c -- unicode support for the windres program.
- Copyright (C) 1997-20
14
Free Software Foundation, Inc.
+ Copyright (C) 1997-20
20
Free Software Foundation, Inc.
Written by Ian Lance Taylor, Cygnus Support.
Rewritten by Kai Tietz, Onevision.
Written by Ian Lance Taylor, Cygnus Support.
Rewritten by Kai Tietz, Onevision.
@@
-57,7
+57,7
@@
static int unichar_isascii (const unichar *, rc_uint_type);
/* Codepages mapped. */
static local_iconv_map codepages[] =
{
/* Codepages mapped. */
static local_iconv_map codepages[] =
{
- { 0, "
MS-ANSI
" },
+ { 0, "
cp1252
" },
{ 1, "WINDOWS-1252" },
{ 437, "MS-ANSI" },
{ 737, "MS-GREEK" },
{ 1, "WINDOWS-1252" },
{ 437, "MS-ANSI" },
{ 737, "MS-GREEK" },
@@
-213,7
+213,7
@@
unicode_from_ascii_len (rc_uint_type *length, unichar **unicode, const char *asc
}
/* Make sure we have zero terminated string. */
}
/* Make sure we have zero terminated string. */
- p = tmp = (char *)
alloca
(a_length + 1);
+ p = tmp = (char *)
xmalloc
(a_length + 1);
memcpy (tmp, ascii, a_length);
tmp[a_length] = 0;
memcpy (tmp, ascii, a_length);
tmp[a_length] = 0;
@@
-279,6
+279,8
@@
unicode_from_ascii_len (rc_uint_type *length, unichar **unicode, const char *asc
if (length)
*length = idx;
if (length)
*length = idx;
+
+ free (tmp);
}
/* Convert an unicode string to an ASCII string. We just copy it,
}
/* Convert an unicode string to an ASCII string. We just copy it,
This page took
0.023959 seconds
and
4
git commands to generate.