From 2a01c7802a21082a3fe8bc1505ce861cfeccdd4f Mon Sep 17 00:00:00 2001 From: tedu Date: Fri, 31 May 2013 21:18:04 +0000 Subject: minor tweaks --- lib/libc/gen/getprogname.3 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/gen/getprogname.3 b/lib/libc/gen/getprogname.3 index b3d8e4c38e2..6443d3bd459 100644 --- a/lib/libc/gen/getprogname.3 +++ b/lib/libc/gen/getprogname.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getprogname.3,v 1.1 2013/05/31 20:59:23 ajacoutot Exp $ +.\" $OpenBSD: getprogname.3,v 1.2 2013/05/31 21:18:04 tedu Exp $ .\" .\" Copyright (c) 2001 Christopher G. Demetriou .\" All rights reserved. @@ -58,11 +58,12 @@ will return .Pp The .Fn setprogname -function sets the name of the program to be the last component of the +function sets the name of the program to be the last path component of the .Fa progname argument. -Since a pointer to the given string is kept as the program name, -it should not be modified for the rest of the program's lifetime. +Internally, only the pointer to the given string is kept as the program name, +so it should not be modified and the storage for the string must remain valid +for the rest of the program's lifetime. .Pp In .Ox , -- cgit v1.2.3-59-g8ed1b