Commit b485e0c1 authored by Wayne Davison's avatar Wayne Davison

Fixed/improved the comment before safe_name().

parent bc1fac96
...@@ -876,11 +876,11 @@ int pop_dir(char *dir) ...@@ -876,11 +876,11 @@ int pop_dir(char *dir)
return 1; return 1;
} }
/** /* Return the filename, turning any non-printable characters into '?'s.
* Return the filename, turning any newlines into '?'s. This ensures that * This ensures that outputting it on a line of its own cannot generate an
* outputting it on a line of its own cannot generate an empty line. This * empty line. This function can return only MAX_SAFE_NAMES values at a
* function can handle only 2 names at a time! * time! The returned value can be longer than MAXPATHLEN (because we
**/ * may be trying to output an error about a too-long filename)! */
const char *safe_fname(const char *fname) const char *safe_fname(const char *fname)
{ {
#define MAX_SAFE_NAMES 4 #define MAX_SAFE_NAMES 4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment