libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit 56fb6c55da6bd51dae23865627924b7669c6a2e7
parent 520c323adc2dae0293855f84e44884f7f56ffc1e
Author: Nils Durner <durner@gnunet.org>
Date:   Wed, 30 May 2007 21:19:25 +0000

fix path determination on Win32

Diffstat:
Msrc/main/extractor.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/extractor.c b/src/main/extractor.c @@ -371,8 +371,8 @@ static char * get_path_from_module_filename() { GetModuleFileName(NULL, path, 4096); idx = path + strlen(path); while ( (idx > path) && - (path != '\\') && - (path != '/') ) + (*idx != '\\') && + (*idx != '/') ) idx--; *idx = '\0'; return cut_bin(path);