Исправлена ошибка с определение файла с помощью

git-svn-id: http://svn.calculate.ru/calcboot/trunk@1535 c91db197-33c1-4113-bf15-f8a5c547ca64
master
mhiretskiy 15 years ago
parent eaaec193fd
commit 6ec447caf4

@ -426,9 +426,9 @@ static int show_fkey(int key)
if( cm->fkeyhelp[fkey].textname ) {
int slent = strlen(cm->fkeyhelp[fkey].textname);
if (slent>4 &&
if (slent<4 ||
(strcmp(cm->fkeyhelp[fkey].textname+slent-4,".txt")
|| strcmp(cm->fkeyhelp[fkey].textname+slent-4,".msg"))) {
&& strcmp(cm->fkeyhelp[fkey].textname+slent-4,".msg"))) {
return fkey;
}
}

Loading…
Cancel
Save