aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/reg-printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/reg-printf.c')
-rw-r--r--stdio-common/reg-printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/reg-printf.c b/stdio-common/reg-printf.c
index db33a3d..2cb086d 100644
--- a/stdio-common/reg-printf.c
+++ b/stdio-common/reg-printf.c
@@ -35,7 +35,7 @@ __register_printf_function (spec, converter, arginfo)
{
if (spec < 0 || spec > (int) UCHAR_MAX)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return -1;
}