summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schauer <j.schauer@email.de>2020-07-07 00:47:06 +0200
committerJohannes 'josch' Schauer <josch@debian.org>2020-07-07 00:47:06 +0200
commit046cf8ddc7a464acb50cbf300d8bba7bb12906a7 (patch)
treef10981d63d6ffb26afe10b768b03f53f2c66a63e
parent91575938588935108f039ac40310874138fcdec7 (diff)
fix mklist typos
The original mklist.c doesnt compile because of syntax errors and variable naming errors. Author: Johannes Schauer <j.schauer@email.de> Gbp-Pq: Name fix-mklist-typos.diff
-rw-r--r--mklist.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mklist.c b/mklist.c
index 7ee531a8a..09531c64c 100644
--- a/mklist.c
+++ b/mklist.c
@@ -44,6 +44,7 @@
#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";
@@ -53,8 +54,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];
@@ -84,7 +85,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