get rid of leftover _DIRENT_NAME_LEN=61
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
#include <stdio.h>
|
||||
#include <dirent.h>
|
||||
|
||||
#define NAME_SIZE _DIRENT_NAME_LEN
|
||||
#define NAME_SIZE NAME_MAX
|
||||
|
||||
#undef NARROW /* Width of verbose output */
|
||||
#define COPY_SIZE 4096
|
||||
|
||||
@@ -575,7 +575,7 @@ char **argv;
|
||||
cp++;
|
||||
else
|
||||
cp = ofname;
|
||||
if (strlen(cp) >= _DIRENT_NAME_LEN-3)
|
||||
if (strlen(cp) >= NAME_MAX-3)
|
||||
{
|
||||
fprintf(stderr,"%s: filename too long to tack on .Z\n",cp);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user