diff options
| author | Paul Eggert | 2011-05-20 21:33:23 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-05-20 21:33:23 -0700 |
| commit | de883a701d8f0db9595c6c459fdff9e3bb20bc83 (patch) | |
| tree | aba160bb28d92c3fbec56549e211bd1f705b273e /src/print.c | |
| parent | 1dcf791fefa6533a06f58a5d2d074f59f06ee9ae (diff) | |
| download | emacs-de883a701d8f0db9595c6c459fdff9e3bb20bc83.tar.gz emacs-de883a701d8f0db9595c6c459fdff9e3bb20bc83.zip | |
merge count_size_as_multibyte, parse_str_to_multibyte
* character.c, character.h (count_size_as_multibyte):
Renamed from parse_str_to_multibyte; all uses changed.
Check for integer overflow.
* insdel.c, lisp.h (count_size_as_multibyte): Remove,
since it's now a duplicate of the other. This is more of
a character than a buffer op, so better that it's in character.c.
* fns.c, print.c: Adjust to above changes.
Diffstat (limited to 'src/print.c')
| -rw-r--r-- | src/print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c index f0624d5d16e..20c3e8ae526 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -381,7 +381,7 @@ print_string (Lisp_Object string, Lisp_Object printcharfun) | |||
| 381 | EMACS_INT bytes; | 381 | EMACS_INT bytes; |
| 382 | 382 | ||
| 383 | chars = SBYTES (string); | 383 | chars = SBYTES (string); |
| 384 | bytes = parse_str_to_multibyte (SDATA (string), chars); | 384 | bytes = count_size_as_multibyte (SDATA (string), chars); |
| 385 | if (chars < bytes) | 385 | if (chars < bytes) |
| 386 | { | 386 | { |
| 387 | newstr = make_uninit_multibyte_string (chars, bytes); | 387 | newstr = make_uninit_multibyte_string (chars, bytes); |