mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-30 19:39:34 -05:00
Fixup %EXECUTABLE% code.
git-svn-id: file:///svn/unbound/trunk@3553 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
453ff48e89
commit
ae7c49cb0b
1 changed files with 1 additions and 1 deletions
|
|
@ -340,7 +340,7 @@ service_init(int r, struct daemon** d, struct config_file** c)
|
|||
/* get executable path, and if that contains
|
||||
* directories, snip off the filename part */
|
||||
dirbuf[0] = 0;
|
||||
if(!GetModuleFileName(NULL, path+1, MAX_PATH))
|
||||
if(!GetModuleFileName(NULL, dirbuf, MAX_PATH))
|
||||
log_err("could not GetModuleFileName");
|
||||
if(strrchr(dirbuf, '\\')) {
|
||||
(strrchr(dirbuf, '\\'))[0] = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue