From: Erez Zadok Date: Wed, 5 Oct 2005 23:33:01 +0000 (+0000) Subject: * libamu/hasmntopt.c (amu_hasmntopt): increase size of MNTMAXSTR X-Git-Tag: am-utils-6_2a1~27 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=fa94e599e2bb338e674bbe80b9c11614a77a90dc;p=am-utils-6.1.git * libamu/hasmntopt.c (amu_hasmntopt): increase size of MNTMAXSTR from 128 to to 256, because some users have really long option strings. Suggestion from jon+amd-at-spock.org. --- diff --git a/ChangeLog b/ChangeLog index cb6c8ea..064db10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2005-10-05 Erez Zadok + * libamu/hasmntopt.c (amu_hasmntopt): increase size of MNTMAXSTR + from 128 to to 256, because some users have really long option + strings. Suggestion from jon+amd-at-spock.org. + * amd/opts.c (expand_op): should check BUFSPACE for vlen+1, not just vlen. Bug discovered when started using xstrlcpy(). diff --git a/libamu/hasmntopt.c b/libamu/hasmntopt.c index 4af746a..c1847f7 100644 --- a/libamu/hasmntopt.c +++ b/libamu/hasmntopt.c @@ -48,7 +48,7 @@ n * modification, are permitted provided that the following conditions #include #ifndef MNTMAXSTR -# define MNTMAXSTR 128 +# define MNTMAXSTR 256 #endif /* not MNTMAXSTR */ @@ -58,7 +58,6 @@ n * modification, are permitted provided that the following conditions * * From: Piete Brooks */ - static char * nextmntopt(char **p) { @@ -97,6 +96,7 @@ nextmntopt(char **p) return rp; } + /* * replacement for hasmntopt if the system does not have it. */