From 96bb519ca1b50905eba416f2f71edd57a4eea5d7 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 10 Jul 2020 17:04:19 +0000 Subject: adjust %n description to vaguely say "pointer", becuase the following list of "[size]n" includes "n" on it's own, thereby the "int" case is described correctly. ok schwarze --- lib/libc/stdio/printf.3 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lib/libc/stdio/printf.3') diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3 index 3ca5645f9ff..8ab134eb315 100644 --- a/lib/libc/stdio/printf.3 +++ b/lib/libc/stdio/printf.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: printf.3,v 1.86 2020/07/10 14:43:18 schwarze Exp $ +.\" $OpenBSD: printf.3,v 1.87 2020/07/10 17:04:18 deraadt Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -576,9 +576,11 @@ supporting the same modifiers. .Cm n .Sm on .Pp -The number of bytes written so far is stored into the signed integer -variable indicated by the pointer argument. -No argument is converted. +The number of bytes written so far is stored at the variable indicated +by the pointer argument. +The +.Cm %n +conversion specifier produces no output. .Pp Make sure the .Ar size -- cgit v1.2.3