From 2a499fb72da7d0a4d2c35d99c4ffe269122a981d Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Mon, 8 Aug 2005 13:38:49 +0000 Subject: [PATCH] Instead of MAXNAMELEN, use NAME_MAX for now. This should be revisited latter to allocate the entry dynamically. Add CVS id. --- gnu/lib/libdialog/dir.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/lib/libdialog/dir.h b/gnu/lib/libdialog/dir.h index eadc0c5cb2..7d374cfd60 100644 --- a/gnu/lib/libdialog/dir.h +++ b/gnu/lib/libdialog/dir.h @@ -13,14 +13,15 @@ * the author assume any responsibility for damages incurred with * its use. * + * $DragonFly: src/gnu/lib/libdialog/dir.h,v 1.2 2005/08/08 13:38:49 joerg Exp $ */ #include #include -#include +#include typedef struct DirList { /* structure to hold the directory entries */ - char filename[MAXNAMLEN]; /* together with the stat-info per file */ + char filename[NAME_MAX]; /* together with the stat-info per file */ struct stat filestatus; /* filename, or the name to which it points */ int link; /* is it a link ? */ char *linkname; /* the name of the file the link points to */ -- 2.41.0