Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
88bc3111
Commit
88bc3111
authored
Jan 09, 1998
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fcall_interactively): Allocate string by bytes.
Use message_with_string.
parent
c872c6b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/callint.c
src/callint.c
+4
-4
No files found.
src/callint.c
View file @
88bc3111
...
@@ -288,8 +288,8 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
...
@@ -288,8 +288,8 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
{
{
/* Make a copy of string so that if a GC relocates specs,
/* Make a copy of string so that if a GC relocates specs,
`string' will still be valid. */
`string' will still be valid. */
string
=
(
unsigned
char
*
)
alloca
(
XSTRING
(
specs
)
->
size
+
1
);
string
=
(
unsigned
char
*
)
alloca
(
XSTRING
(
specs
)
->
size
_byte
+
1
);
bcopy
(
XSTRING
(
specs
)
->
data
,
string
,
XSTRING
(
specs
)
->
size
+
1
);
bcopy
(
XSTRING
(
specs
)
->
data
,
string
,
XSTRING
(
specs
)
->
size
_byte
+
1
);
}
}
else
if
(
string
==
0
)
else
if
(
string
==
0
)
{
{
...
@@ -487,10 +487,10 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
...
@@ -487,10 +487,10 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
break
;
break
;
case
'c'
:
/* Character */
case
'c'
:
/* Character */
/* Use message_
nolo
g rather than message1_nolog here,
/* Use message_
with_strin
g rather than message1_nolog here,
so that nothing bad happens if callint_message is changed
so that nothing bad happens if callint_message is changed
within Fread_char (by a timer, for example). */
within Fread_char (by a timer, for example). */
message_
nolog
(
"%s"
,
callint_message
);
message_
with_string
(
"%s"
,
build_string
(
callint_message
)
,
0
)
;
args
[
i
]
=
Fread_char
();
args
[
i
]
=
Fread_char
();
message1_nolog
((
char
*
)
0
);
message1_nolog
((
char
*
)
0
);
/* Passing args[i] directly stimulates compiler bug */
/* Passing args[i] directly stimulates compiler bug */
...
...
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