From 85a910f02e6dd835354d11353f27f99e56ff4f1e Mon Sep 17 00:00:00 2001 From: glx Date: Mon, 9 Nov 2009 15:16:38 +0000 Subject: (svn r18029) -Fix (r18028): AppendPathSeparator() should stay global --- src/fileio.cpp | 2 +- src/fileio_func.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fileio.cpp b/src/fileio.cpp index 858ac5abb..6658955a9 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -436,7 +436,7 @@ void FioCreateDirectory(const char *name) * @param buf string to append the separator to * @param buflen the length of the buf */ -static void AppendPathSeparator(char *buf, size_t buflen) +void AppendPathSeparator(char *buf, size_t buflen) { size_t s = strlen(buf); diff --git a/src/fileio_func.h b/src/fileio_func.h index 4b42e4908..b2d2da803 100644 --- a/src/fileio_func.h +++ b/src/fileio_func.h @@ -57,6 +57,7 @@ char *FioAppendDirectory(char *buf, size_t buflen, Searchpath sp, Subdirectory s char *FioGetDirectory(char *buf, size_t buflen, Subdirectory subdir); void SanitizeFilename(char *filename); +void AppendPathSeparator(char *buf, size_t buflen); void DeterminePaths(const char *exe); void *ReadFileToMem(const char *filename, size_t *lenp, size_t maxsize); bool FileExists(const char *filename); -- cgit v1.2.3-54-g00ecf