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
dfb824e8
Commit
dfb824e8
authored
Aug 11, 1995
by
Richard M. Stallman
Browse files
(doprnt): Error if %-width is too big.
parent
1077bc04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
src/doprnt.c
src/doprnt.c
+2
-4
No files found.
src/doprnt.c
View file @
dfb824e8
...
...
@@ -104,10 +104,8 @@ 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
;
if
(
size_bound
>
(
unsigned
)
(
1
<<
(
INTBITS
-
1
)))
error
(
"Format padding to large"
);
/* Make sure we have that much. */
if
(
size_bound
>
size_allocated
)
...
...
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