mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
parent
7a7c2117bf
commit
3edacc85ed
2
3rdparty/mythes/1.2.5/mythes.cxx
vendored
2
3rdparty/mythes/1.2.5/mythes.cxx
vendored
@ -48,7 +48,7 @@ int MyThes::thInitialize(const char* idxpath, const char* datpath)
|
||||
readLine(pifile,wrd,MAX_WD_LEN);
|
||||
int idxsz = atoi(wrd);
|
||||
|
||||
if (idxsz <= 0 || idxsz > std::numeric_limits<int>::max() / sizeof(sizeof(char*))) {
|
||||
if (idxsz <= 0 || idxsz > std::numeric_limits<int>::max() / sizeof(char*)) {
|
||||
fprintf(stderr,"Error - bad index %d\n", idxsz);
|
||||
fclose(pifile);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user