9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c921c5fe9973eb3430fc5935e005b612588cd65a
parent 1e2d7ddf87bfed9a74a16fbe1493ebc4c6df8157
Author: Ambroise Vincent <ambroise.vincent@arm.com>
Date:   Thu,  9 May 2019 15:45:13 +0100

Merge "[dev] Increase max path length"
Diffstat:
Mdrivers/dev.c | 2+-
Minclude/rcode/io.h | 3++-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/dev.c b/drivers/dev.c @@ -403,7 +403,7 @@ stat(char *path, void *buf, int n) int r; size_t len; Chan *c; - char *p, dirname[NAMELEN]; + char *p, dirname[PATHLEN]; if (n < DIRLEN) { errno = EINVAL; diff --git a/include/rcode/io.h b/include/rcode/io.h @@ -1,7 +1,8 @@ #ifndef IO_H #define IO_H -#define NAMELEN 14 +#define NAMELEN 14 /* Maximum length of a file name */ +#define PATHLEN 41 /* Maximum length of a path */ #define STATLEN 41 #define ROOTLEN (2 + 4) #define FILNAMLEN (2 + NAMELEN)