summaryrefslogtreecommitdiff
path: root/mklist.c
diff options
context:
space:
mode:
authorJohannes Schauer <josch@debian.org>2016-10-12 12:02:03 +0200
committerJohannes Schauer <josch@debian.org>2016-10-12 12:02:03 +0200
commit9f7983e465bd1a2d98d6adc0884db4d614f6c4bb (patch)
tree2760f86a7423351b17cab69ade0e6c93c553e1b3 /mklist.c
parent118880912438aa219d100a85ec54ac461741b3ba (diff)
import upstream version 1502
Diffstat (limited to 'mklist.c')
-rw-r--r--mklist.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mklist.c b/mklist.c
index 09531c64c..7ee531a8a 100644
--- a/mklist.c
+++ b/mklist.c
@@ -44,7 +44,6 @@
#include "alloc.h"
#include "dir.h"
#include "conio.h"
-#include <libgen.h>
char *ProgVer = "mklist v1.6 20100706 (C) 1999-2010 Lars C. Hassing lch@ccieurope.com";
@@ -54,8 +53,8 @@ int quiet = 0;
/*****************************************************************/
/* Filename length compatibility stuff */
/*****************************************************************/
-#ifndef MAX_PATH
-#define MAX_PATH 256
+#ifndef _MAX_PATH
+#define _MAX_PATH 256
#endif
char shortfilepath[MAX_PATH];
char shortfilename[MAX_PATH];
@@ -85,7 +84,7 @@ int namelen = 25; /* LSC specs allow 25 chars in filename. */
int GetShortPathName(char *longpath, char * shortpath, int psize)
{
strncpy(shortpath, longpath, psize);
- return(strlen(shortpath));
+ return(strlen(shortpath);
}
#endif