Commit 3efaadb7 authored by Stefan Monnier's avatar Stefan Monnier

(Fsubstitute_in_file_name): Fix up computation of maximum

size of resulting string.
parent c80b160d
2008-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
* fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
size of resulting string.
2008-03-05 Jason Rumney <jasonr@gnu.org>
* dispnew.c (adjust_glyph_matrix): Initialize window_height.
......
......@@ -2226,8 +2226,8 @@ duplicates what `expand-file-name' does. */)
/* Get variable value */
o = (unsigned char *) egetenv (target);
if (o)
{
total += strlen (o);
{ /* Eight-bit chars occupy upto 2 bytes in multibyte. */
total += strlen (o) * (STRING_MULTIBYTE (filename) ? 2 : 1);
substituted = 1;
}
else if (*p == '}')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment