Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
04d47595
Commit
04d47595
authored
Oct 16, 2013
by
Dmitry Antipov
Browse files
* fns.c (Fstring_as_unibyte): Use xlispstrdup.
parent
a24b9961
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/ChangeLog
src/ChangeLog
+4
-0
src/fns.c
src/fns.c
+2
-4
No files found.
src/ChangeLog
View file @
04d47595
2013-10-16 Dmitry Antipov <dmantipov@yandex.ru>
* fns.c (Fstring_as_unibyte): Use xlispstrdup.
2013-10-15 Paul Eggert <eggert@cs.ucla.edu>
* print.c (print_object): Print " ..." when truncating bool vectors.
...
...
src/fns.c
View file @
04d47595
...
...
@@ -1009,11 +1009,9 @@ If STRING is multibyte and contains a character of charset
if
(
STRING_MULTIBYTE
(
string
))
{
ptrdiff_t
bytes
=
SBYTES
(
string
);
unsigned
char
*
str
=
xmalloc
(
bytes
);
unsigned
char
*
str
=
xlispstrdup
(
string
);
ptrdiff_t
bytes
=
str_as_unibyte
(
str
,
SBYTES
(
string
)
);
memcpy
(
str
,
SDATA
(
string
),
bytes
);
bytes
=
str_as_unibyte
(
str
,
bytes
);
string
=
make_unibyte_string
((
char
*
)
str
,
bytes
);
xfree
(
str
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment