From: yukihane Date: Wed, 21 Sep 2011 15:21:29 +0000 (+0900) Subject: strncmp判定誤り X-Git-Tag: rel20110922_ver2.1.0~7^2^2~3 X-Git-Url: http://git.osdn.net/view?p=coroid%2Finqubus.git;a=commitdiff_plain;h=61e99f696eba9fe2ffd8374a133ac5d848941841 strncmp判定誤り --- diff --git a/vhook/framehook.c b/vhook/framehook.c index b1b5ca1..9d7dd26 100644 --- a/vhook/framehook.c +++ b/vhook/framehook.c @@ -128,7 +128,7 @@ int init_setting(FILE*log,const toolbox *tbox,SETTING* setting,int argc, char *a const char* const prefix = FRAMEHOOK_OPT_DATA[j]; const int prefix_len = strlen(prefix); SETTING_COMMENT* const comset = &setting->comment[j]; - if (!comset->path && strncmp(prefix, arg, prefix_len)) { + if (!comset->path && !strncmp(prefix, arg, prefix_len)) { const char* data = arg + prefix_len; comset->path = data; comset->enable = TRUE;