artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a935027
)
Interpret the argument of '%c' as an integer instead of a string.
author
mpi
<mpi@openbsd.org>
Fri, 6 Sep 2024 07:58:50 +0000
(07:58 +0000)
committer
mpi
<mpi@openbsd.org>
Fri, 6 Sep 2024 07:58:50 +0000
(07:58 +0000)
From Christian Ludwig.
usr.sbin/btrace/printf.c
patch
|
blob
|
history
diff --git
a/usr.sbin/btrace/printf.c
b/usr.sbin/btrace/printf.c
index
d7a9424
..
49d046a
100644
(file)
--- a/
usr.sbin/btrace/printf.c
+++ b/
usr.sbin/btrace/printf.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: printf.c,v 1.
2 2020/09/18 19:19:38 jasper Exp $
*/
+/* $OpenBSD: printf.c,v 1.
3 2024/09/06 07:58:50 mpi Exp $
*/
/*
* Copyright (c) 1989 The Regents of the University of California.
@@
-400,7
+400,7
@@
getchr(void)
if (gargv == NULL)
return((int)'\0');
- c =
(int)*ba2str
(gargv, gdevt);
+ c =
ba2long
(gargv, gdevt);
gargv = SLIST_NEXT(gargv, ba_next);
return c;
}