Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3efaadb7
Commit
3efaadb7
authored
Mar 07, 2008
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fsubstitute_in_file_name): Fix up computation of maximum
size of resulting string.
parent
c80b160d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/fileio.c
src/fileio.c
+2
-2
No files found.
src/ChangeLog
View file @
3efaadb7
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.
...
...
src/fileio.c
View file @
3efaadb7
...
...
@@ -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
==
'}'
)
...
...
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