commit f3870eac196bf7bdcedf3aceeba7501d5211b9ae from: Markus Uhlin date: Sun Aug 17 15:15:51 2025 UTC Corrected if commit - 4d595292ee725266b7313feac1be0f588955b3d6 commit + f3870eac196bf7bdcedf3aceeba7501d5211b9ae blob - 1554ffd8ecc3d1fd2aa87ff0441ce6c424034e81 blob + 9828b17dceba9daaa0db392d31bde067fe8c2c83 --- FICS/obsproc.c +++ FICS/obsproc.c @@ -1003,9 +1003,9 @@ FindHistory(int p, int p1, int p_game) fclose(fpHist); - /* Validate 'when' before using it in a path */ - if (when <= 0 || when > 9999999999L) { - pprintf(p, "Corrupt history data for %s (invalid timestamp).\n", parray[p1].name); + if (when < 0) { + pprintf(p, "Corrupt history data for %s (invalid timestamp).\n", + parray[p1].name); return NULL; }