summaryrefslogtreecommitdiff
path: root/ccache.h
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2015-01-28 23:15:01 +0100
committerJoel Rosdahl <joel@rosdahl.net>2015-01-28 23:15:01 +0100
commit50ede96f411448eb86f07ad61dac8f542bb60b0c (patch)
tree1e6bc389536e94363bf49af62ebb12f463c33df6 /ccache.h
parent67ed2854ea61dbc5455971e96cb34668ac54c98b (diff)
downloadccache-50ede96f411448eb86f07ad61dac8f542bb60b0c.tar.gz
Various fixes in WIN32-specific code
* Avoid potential buffer overflow in add_exe_ext_if_no_to_fullpath. * Avoid using zero-padding strncpy function. * Removed superfluous newline characters from log messages. * For consistency, moved variable declarations to the top of the scope to please older compilers. * For consistency, used C89-style comments to please older compilers. * Fixed source code formatting.
Diffstat (limited to 'ccache.h')
-rw-r--r--ccache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ccache.h b/ccache.h
index 174e5822..9d35a553 100644
--- a/ccache.h
+++ b/ccache.h
@@ -253,7 +253,7 @@ char *win32getshell(char *path);
int win32execute(char *path, char **argv, int doreturn,
int fd_stdout, int fd_stderr);
void add_exe_ext_if_no_to_fullpath(char *full_path_win_ext, size_t max_size,
- const char* ext, char* path);
+ const char *ext, const char *path);
# ifndef _WIN32_WINNT
# define _WIN32_WINNT 0x0501
# endif