diff options
author | Johannes Schauer <josch@debian.org> | 2016-10-12 12:06:20 +0200 |
---|---|---|
committer | Johannes Schauer <josch@debian.org> | 2016-10-12 12:06:35 +0200 |
commit | bc5f78f6bad8fd0fba2638032ab2ef67d0a17fda (patch) | |
tree | c3bb9cb4308bf06f399f34732de2fd7025243619 | |
parent | 9f7983e465bd1a2d98d6adc0884db4d614f6c4bb (diff) |
Apply debian/patches/fix-mklist-typos.diff
-rw-r--r-- | mklist.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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
|