* libamu/hasmntopt.c (amu_hasmntopt): increase size of MNTMAXSTR
authorErez Zadok <ezk@cs.sunysb.edu>
Wed, 5 Oct 2005 23:33:01 +0000 (23:33 +0000)
committerErez Zadok <ezk@cs.sunysb.edu>
Wed, 5 Oct 2005 23:33:01 +0000 (23:33 +0000)
from 128 to to 256, because some users have really long option
strings.  Suggestion from jon+amd-at-spock.org.

ChangeLog
libamu/hasmntopt.c

index cb6c8eaae1fb6875ebbdf8711658d0bce2776ebe..064db10b2af5f26bba0ff993e7def26eea995f1e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2005-10-05  Erez Zadok  <ezk@cs.sunysb.edu>
 
+       * 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().
 
index 4af746aaba848c5c7d322170737ebb823ee73ea9..c1847f7417dd91545a41182ff35b0d3440dc8bc4 100644 (file)
@@ -48,7 +48,7 @@ n * modification, are permitted provided that the following conditions
 #include <amu.h>
 
 #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 <pb@cl.cam.ac.uk>
  */
-
 static char *
 nextmntopt(char **p)
 {
@@ -97,6 +96,7 @@ nextmntopt(char **p)
   return rp;
 }
 
+
 /*
  * replacement for hasmntopt if the system does not have it.
  */