1 --- misc/mythes-1.2.3/mythes.cxx 2012-06-29 13:16:55.812939142 +0100
2 +++ misc/build/mythes-1.2.3/mythes.cxx 2012-06-29 13:17:21.159198507 +0100
4 len = readLine(pifile,wrd,MAX_WD_LEN);
7 - if (idxsz <= 0 || idxsz > std::numeric_limits<ssize_t>::max() / sizeof(sizeof(char*))) {
8 + if (idxsz <= 0 || idxsz > std::numeric_limits<int>::max() / sizeof(sizeof(char*))) {
9 fprintf(stderr,"Error - bad index %d\n", idxsz);
15 int nmeanings = atoi(buf+np+1);
16 - if (nmeanings < 0 || nmeanings > std::numeric_limits<ssize_t>::max() / sizeof(mentry))
17 + if (nmeanings < 0 || nmeanings > std::numeric_limits<int>::max() / sizeof(mentry))
19 *pme = (mentry*)(nmeanings ? malloc(nmeanings * sizeof(mentry)) : NULL);