diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2015-01-28 23:15:01 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2015-01-28 23:15:01 +0100 |
commit | 50ede96f411448eb86f07ad61dac8f542bb60b0c (patch) | |
tree | 1e6bc389536e94363bf49af62ebb12f463c33df6 /ccache.h | |
parent | 67ed2854ea61dbc5455971e96cb34668ac54c98b (diff) | |
download | ccache-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |