From 32928258cedefe07adefd90d253d02f91f2e3a6c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 5 Dec 2009 12:14:04 +0100 Subject: progname: Clarify specification. --- lib/progname.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/progname.c') diff --git a/lib/progname.c b/lib/progname.c index bfa374a528..c8660c9418 100644 --- a/lib/progname.c +++ b/lib/progname.c @@ -1,6 +1,6 @@ /* Program name management. Copyright (C) 2001-2003, 2005-2009 Free Software Foundation, Inc. - Written by Bruno Haible , 2001. + Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,7 +30,9 @@ To be initialized by main(). */ const char *program_name = NULL; -/* Set program_name, based on argv[0]. */ +/* Set program_name, based on argv[0]. + argv0 must be a string allocated with indefinite extent, and must not be + modified after this call. */ void set_program_name (const char *argv0) { -- cgit v1.2.1