diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2007-12-09 03:11:49 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2007-12-09 03:11:49 +0000 |
commit | 094213ab87e314836bb72b08718620b83c783cf0 (patch) | |
tree | 316805d05bfa530809e32ac342066926683f71a9 | |
parent | 63113e6b1222bc65e5eab2782cf8d4ccf4576efe (diff) | |
download | netpbm-mirror-094213ab87e314836bb72b08718620b83c783cf0.tar.gz netpbm-mirror-094213ab87e314836bb72b08718620b83c783cf0.tar.xz netpbm-mirror-094213ab87e314836bb72b08718620b83c783cf0.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@477 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | lib/libpm.c | 5 |
1 files changed, 3 insertions, 2 deletions
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]; |