[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 57/63: tool_parsecfg: Use correct return type for G
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 57/63: tool_parsecfg: Use correct return type for GetModuleFileName() |
Date: |
Fri, 07 Jun 2019 18:37:19 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 3538026f6f145b2811f4d515992565d6cbe969b0
Author: Steve Holme <address@hidden>
AuthorDate: Sun Jun 2 22:21:31 2019 +0100
tool_parsecfg: Use correct return type for GetModuleFileName()
GetModuleFileName() returns a DWORD which is a typedef of an unsigned
long and not an int.
Closes #3980
---
src/tool_parsecfg.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/tool_parsecfg.c b/src/tool_parsecfg.c
index 621369d45..36c7bccf0 100644
--- a/src/tool_parsecfg.c
+++ b/src/tool_parsecfg.c
@@ -76,8 +76,9 @@ int parseconfig(const char *filename, struct GlobalConfig
*global)
* already declared via inclusions done in setup header file.
* We assume that we are using the ASCII version here.
*/
- int n = GetModuleFileNameA(0, filebuffer, sizeof(filebuffer));
- if(n > 0 && n < (int)sizeof(filebuffer)) {
+ unsigned long len = GetModuleFileNameA(0, filebuffer,
+ sizeof(filebuffer));
+ if(len > 0 && len < sizeof(filebuffer)) {
/* We got a valid filename - get the directory part */
char *lastdirchar = strrchr(filebuffer, '\\');
if(lastdirchar) {
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [gnurl] 34/63: cmake: support CMAKE_OSX_ARCHITECTURES when detecting SIZEOF variables, (continued)
- [GNUnet-SVN] [gnurl] 34/63: cmake: support CMAKE_OSX_ARCHITECTURES when detecting SIZEOF variables, gnunet, 2019/06/07
- [GNUnet-SVN] [gnurl] 41/63: url: Load if_nametoindex() dynamically from iphlpapi.dll on Windows, gnunet, 2019/06/07
- [GNUnet-SVN] [gnurl] 40/63: http: fix "error: equality comparison with extraneous parentheses", gnunet, 2019/06/07
- [GNUnet-SVN] [gnurl] 48/63: singlesocket: use separate variable for inner loop, gnunet, 2019/06/07
- [GNUnet-SVN] [gnurl] 52/63: test334: verify HTTP 204 response with chunked coding header, gnunet, 2019/06/07
- [GNUnet-SVN] [gnurl] 47/63: RELEASE-NOTES: synced, gnunet, 2019/06/07
- [GNUnet-SVN] [gnurl] 44/63: system_win32: fix function prototype, gnunet, 2019/06/07
- [GNUnet-SVN] [gnurl] 50/63: tls13-docs: mention it is only for OpenSSL >= 1.1.1, gnunet, 2019/06/07
- [GNUnet-SVN] [gnurl] 30/63: RELEASE-NOTES: synced, gnunet, 2019/06/07
- [GNUnet-SVN] [gnurl] 55/63: tests/server/.gitignore: Add socksd to the ignore list, gnunet, 2019/06/07
- [GNUnet-SVN] [gnurl] 57/63: tool_parsecfg: Use correct return type for GetModuleFileName(),
gnunet <=
- [GNUnet-SVN] [gnurl] 54/63: tool_parsecfg: Fix control flow issue (DEADCODE), gnunet, 2019/06/07
- [GNUnet-SVN] [gnurl] 60/63: THANKS: new contributors from 7.65.1, gnunet, 2019/06/07
- [GNUnet-SVN] [gnurl] 61/63: RELEASE-NOTES: 7.65.1, gnunet, 2019/06/07
- [GNUnet-SVN] [gnurl] 63/63: Merge changes to doc., gnunet, 2019/06/07
- [GNUnet-SVN] [gnurl] 59/63: ssl: Update outdated "openssl-only" comments for supported backends, gnunet, 2019/06/07
- [GNUnet-SVN] [gnurl] 62/63: Merge tag 'curl-7_65_1' of https://github.com/curl/curl, gnunet, 2019/06/07
- [GNUnet-SVN] [gnurl] 49/63: dump-header.d: spell out that no headers == empty file [ci skip], gnunet, 2019/06/07