Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
b485e0c1
Commit
b485e0c1
authored
Feb 18, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed/improved the comment before safe_name().
parent
bc1fac96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
util.c
util.c
+5
-5
No files found.
util.c
View file @
b485e0c1
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment