source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Use PATH_MAX rather than the non-standard MAXPATHLEN.
@ 2015-05-20 22:57 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2015-05-20 22:57 UTC (permalink / raw)
  To: source

Log Message:
-----------
Use PATH_MAX rather than the non-standard MAXPATHLEN.

Modified Files:
--------------
    mdocml:
        soelim.c

Revision Data
-------------
Index: soelim.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/soelim.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -Lsoelim.c -Lsoelim.c -u -p -r1.2 -r1.3
--- soelim.c
+++ soelim.c
@@ -25,11 +25,11 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <sys/param.h>
 #include <sys/types.h>
 
 #include <ctype.h>
 #include <err.h>
+#include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -57,7 +57,7 @@ static FILE *
 soelim_fopen(const char *name)
 {
 	FILE *f;
-	char path[MAXPATHLEN];
+	char path[PATH_MAX];
 	size_t i;
 
 	if (strcmp(name, "-") == 0)
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-20 22:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-20 22:57 mdocml: Use PATH_MAX rather than the non-standard MAXPATHLEN schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).