From 094213ab87e314836bb72b08718620b83c783cf0 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 9 Dec 2007 03:11:49 +0000 Subject: cleanup git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@477 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/libpm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libpm.c') diff --git a/lib/libpm.c b/lib/libpm.c index 1ca7eba2..3e559297 100644 --- a/lib/libpm.c +++ b/lib/libpm.c @@ -746,12 +746,13 @@ pm_setMessage(int const newState, int * const oldStateP) { } + char * pm_arg0toprogname(const char arg0[]) { /*---------------------------------------------------------------------------- Given a value for argv[0] (a command name or file name passed to a program in the standard C calling sequence), return the name of the - Netpbm program to which is refers. + Netpbm program to which it refers. In the most ordinary case, this is simply the argument itself. @@ -759,7 +760,7 @@ pm_arg0toprogname(const char arg0[]) { after the last slash, and if there is a .exe on it (as there is for DJGPP), that is removed. - The return value is in static storage within. It is null-terminated, + The return value is in static storage within. It is NUL-terminated, but truncated at 64 characters. -----------------------------------------------------------------------------*/ static char retval[64+1]; -- cgit 1.4.1