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
a50545d9
Commit
a50545d9
authored
Dec 31, 1997
by
Richard M. Stallman
Browse files
(doprnt1): Call to CHAR_HEAD_P fixed.
parent
aa406bac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/doprnt.c
src/doprnt.c
+3
-3
No files found.
src/doprnt.c
View file @
a50545d9
...
...
@@ -267,7 +267,7 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args)
{
/* Truncate the string at character boundary. */
tem
=
bufsize
;
while
(
!
CHAR_HEAD_P
(
string
+
tem
-
1
))
tem
--
;
while
(
!
CHAR_HEAD_P
(
string
[
tem
-
1
]
))
tem
--
;
bcopy
(
string
,
bufptr
,
tem
);
/* We must calculate WIDTH again. */
width
=
strwidth
(
bufptr
,
tem
);
...
...
@@ -310,8 +310,8 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args)
char
*
save_bufptr
=
bufptr
;
do
{
*
bufptr
++
=
*
fmt
++
;
}
while
(
--
bufsize
>
0
&&
!
CHAR_HEAD_P
(
fmt
));
if
(
!
CHAR_HEAD_P
(
fmt
))
while
(
--
bufsize
>
0
&&
!
CHAR_HEAD_P
(
*
fmt
));
if
(
!
CHAR_HEAD_P
(
*
fmt
))
{
bufptr
=
save_bufptr
;
break
;
...
...
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