diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/fileio.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0ddc633e61f..b2310ae76c2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-03-07 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum | ||
| 4 | size of resulting string. | ||
| 5 | |||
| 1 | 2008-03-05 Jason Rumney <jasonr@gnu.org> | 6 | 2008-03-05 Jason Rumney <jasonr@gnu.org> |
| 2 | 7 | ||
| 3 | * dispnew.c (adjust_glyph_matrix): Initialize window_height. | 8 | * dispnew.c (adjust_glyph_matrix): Initialize window_height. |
diff --git a/src/fileio.c b/src/fileio.c index c5bff5b8153..769a719191e 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2226,8 +2226,8 @@ duplicates what `expand-file-name' does. */) | |||
| 2226 | /* Get variable value */ | 2226 | /* Get variable value */ |
| 2227 | o = (unsigned char *) egetenv (target); | 2227 | o = (unsigned char *) egetenv (target); |
| 2228 | if (o) | 2228 | if (o) |
| 2229 | { | 2229 | { /* Eight-bit chars occupy upto 2 bytes in multibyte. */ |
| 2230 | total += strlen (o); | 2230 | total += strlen (o) * (STRING_MULTIBYTE (filename) ? 2 : 1); |
| 2231 | substituted = 1; | 2231 | substituted = 1; |
| 2232 | } | 2232 | } |
| 2233 | else if (*p == '}') | 2233 | else if (*p == '}') |