Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6e951728
Commit
6e951728
authored
Aug 07, 1995
by
Richard M. Stallman
Browse files
(doprnt): Don't let size_bound be gigantic. Fix error message.
parent
a7e9dc1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/doprnt.c
src/doprnt.c
+6
-1
No files found.
src/doprnt.c
View file @
6e951728
...
...
@@ -104,6 +104,11 @@ doprnt (buffer, bufsize, format, format_end, nargs, args)
size_bound
=
-
size_bound
;
size_bound
+=
50
;
if
(
size_bound
>
bufsize
)
/* This is certainly enough that it doesn't matter
to lose the rest. */
size_bound
=
bufsize
+
100
;
/* Make sure we have that much. */
if
(
size_bound
>
size_allocated
)
{
...
...
@@ -125,7 +130,7 @@ doprnt (buffer, bufsize, format, format_end, nargs, args)
case
'o'
:
case
'x'
:
if
(
cnt
==
nargs
)
error
(
"
n
ot enough arguments for format string"
);
error
(
"
N
ot enough arguments for format string"
);
if
(
sizeof
(
int
)
==
sizeof
(
EMACS_INT
))
;
else
if
(
sizeof
(
long
)
==
sizeof
(
EMACS_INT
))
...
...
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