From b485e0c16ceee1e157f412bf2e93e4986d95b605 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 18 Feb 2005 20:17:05 +0000 Subject: [PATCH] Fixed/improved the comment before safe_name(). --- util.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/util.c b/util.c index 3e783e4d..42b5e100 100644 --- a/util.c +++ b/util.c @@ -876,11 +876,11 @@ int pop_dir(char *dir) return 1; } -/** - * Return the filename, turning any newlines into '?'s. This ensures that - * outputting it on a line of its own cannot generate an empty line. This - * function can handle only 2 names at a time! - **/ +/* Return the filename, turning any non-printable characters into '?'s. + * This ensures that outputting it on a line of its own cannot generate an + * empty line. This function can return only MAX_SAFE_NAMES values at a + * 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) { #define MAX_SAFE_NAMES 4 -- 2.34.1