diff options
Diffstat (limited to 'comms/minicom/patches/patch-ag')
-rw-r--r-- | comms/minicom/patches/patch-ag | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/comms/minicom/patches/patch-ag b/comms/minicom/patches/patch-ag new file mode 100644 index 00000000000..df43da4e2c9 --- /dev/null +++ b/comms/minicom/patches/patch-ag @@ -0,0 +1,19 @@ +$NetBSD: patch-ag,v 1.3 2005/12/19 14:34:33 joerg Exp $ + +--- src/getsdir.c.orig 2005-12-19 14:23:45.000000000 +0000 ++++ src/getsdir.c +@@ -207,9 +207,14 @@ int *len; + int l; + + /* copy the filename */ ++#ifdef NAME_MAX ++ strncpy(datb_cur->data[datb_cur->cnt].fname, ++ dp->d_name, NAME_MAX); ++#else + strncpy(datb_cur->data[datb_cur->cnt].fname, + dp->d_name, + MAXNAMLEN); ++#endif + + /* get information about the directory entry */ + snprintf(fpath, sizeof(fpath), "%s/%s", dirpath, dp->d_name); |