diff options
| author | Joakim Verona | 2011-08-27 19:45:48 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-08-27 19:45:48 +0200 |
| commit | 9fb7b0cab34a48a4c7b66abb6b8edc4ee20467b4 (patch) | |
| tree | e94476d49f15747fcb9409d773702e88201855a4 /src/editfns.c | |
| parent | c7489583c30031c0ecfae9d20b20c149ca1935e9 (diff) | |
| parent | b75258b32810f3690442bddef2e10eef126d2d25 (diff) | |
| download | emacs-9fb7b0cab34a48a4c7b66abb6b8edc4ee20467b4.tar.gz emacs-9fb7b0cab34a48a4c7b66abb6b8edc4ee20467b4.zip | |
upstream
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/editfns.c b/src/editfns.c index 297f7b6d7e4..6759016766f 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -2107,7 +2107,7 @@ static char set_time_zone_rule_tz2[] = "TZ=GMT+1"; | |||
| 2107 | void | 2107 | void |
| 2108 | set_time_zone_rule (const char *tzstring) | 2108 | set_time_zone_rule (const char *tzstring) |
| 2109 | { | 2109 | { |
| 2110 | int envptrs; | 2110 | ptrdiff_t envptrs; |
| 2111 | char **from, **to, **newenv; | 2111 | char **from, **to, **newenv; |
| 2112 | 2112 | ||
| 2113 | /* Make the ENVIRON vector longer with room for TZSTRING. */ | 2113 | /* Make the ENVIRON vector longer with room for TZSTRING. */ |
| @@ -3357,7 +3357,7 @@ usage: (save-restriction &rest BODY) */) | |||
| 3357 | static char *message_text; | 3357 | static char *message_text; |
| 3358 | 3358 | ||
| 3359 | /* Allocated length of that buffer. */ | 3359 | /* Allocated length of that buffer. */ |
| 3360 | static int message_length; | 3360 | static ptrdiff_t message_length; |
| 3361 | 3361 | ||
| 3362 | DEFUN ("message", Fmessage, Smessage, 1, MANY, 0, | 3362 | DEFUN ("message", Fmessage, Smessage, 1, MANY, 0, |
| 3363 | doc: /* Display a message at the bottom of the screen. | 3363 | doc: /* Display a message at the bottom of the screen. |
| @@ -3439,8 +3439,8 @@ usage: (message-box FORMAT-STRING &rest ARGS) */) | |||
| 3439 | } | 3439 | } |
| 3440 | if (SBYTES (val) > message_length) | 3440 | if (SBYTES (val) > message_length) |
| 3441 | { | 3441 | { |
| 3442 | message_text = (char *) xrealloc (message_text, SBYTES (val)); | ||
| 3442 | message_length = SBYTES (val); | 3443 | message_length = SBYTES (val); |
| 3443 | message_text = (char *)xrealloc (message_text, message_length); | ||
| 3444 | } | 3444 | } |
| 3445 | memcpy (message_text, SDATA (val), SBYTES (val)); | 3445 | memcpy (message_text, SDATA (val), SBYTES (val)); |
| 3446 | message2 (message_text, SBYTES (val), | 3446 | message2 (message_text, SBYTES (val), |
| @@ -3889,7 +3889,7 @@ usage: (format STRING &rest OBJECTS) */) | |||
| 3889 | : -1)), | 3889 | : -1)), |
| 3890 | 3890 | ||
| 3891 | /* Maximum number of bytes generated by any format, if | 3891 | /* Maximum number of bytes generated by any format, if |
| 3892 | precision is no more than DBL_USEFUL_PRECISION_MAX. | 3892 | precision is no more than USEFUL_PRECISION_MAX. |
| 3893 | On all practical hosts, %f is the worst case. */ | 3893 | On all practical hosts, %f is the worst case. */ |
| 3894 | SPRINTF_BUFSIZE = | 3894 | SPRINTF_BUFSIZE = |
| 3895 | sizeof "-." + (DBL_MAX_10_EXP + 1) + USEFUL_PRECISION_MAX, | 3895 | sizeof "-." + (DBL_MAX_10_EXP + 1) + USEFUL_PRECISION_MAX, |
| @@ -4165,7 +4165,7 @@ usage: (format STRING &rest OBJECTS) */) | |||
| 4165 | character. CONVBYTES says how much room is needed. Allocate | 4165 | character. CONVBYTES says how much room is needed. Allocate |
| 4166 | enough room (and then some) and do it again. */ | 4166 | enough room (and then some) and do it again. */ |
| 4167 | { | 4167 | { |
| 4168 | EMACS_INT used = p - buf; | 4168 | ptrdiff_t used = p - buf; |
| 4169 | 4169 | ||
| 4170 | if (max_bufsize - used < convbytes) | 4170 | if (max_bufsize - used < convbytes) |
| 4171 | string_overflow (); | 4171 | string_overflow (); |