diff options
author | Johannes Schauer <j.schauer@email.de> | 2022-07-27 16:51:00 +0200 |
---|---|---|
committer | Johannes Schauer Marin Rodrigues <josch@debian.org> | 2022-07-27 16:51:00 +0200 |
commit | 816d4a6154f5e2dcf4d0e8eaf3e93bbf3e50d140 (patch) | |
tree | c3a7ae01ea13278d591f2ec6a19bfc3241433122 | |
parent | a4708c4167d524d125eaf38a0f70fae896c4d69e (diff) |
fix mklist typos
Forwarded: no
Last-Updated: 2021-10-02
The original mklist.c doesnt compile because of syntax errors and variable
naming errors.
Last-Updated: 2021-10-02
Gbp-Pq: Name 1000-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
|