some small fixes

This commit is contained in:
Michiel Broek 2002-04-07 11:00:21 +00:00
parent 8bbc4154a7
commit 882f2af32c
2 changed files with 1 additions and 2 deletions

View File

@ -217,7 +217,6 @@ void Cookie(void)
firstrandom = FALSE;
}
recno = 1+(int) (1.0 * records * rand() / (RAND_MAX + 1.0));
Syslog('f', "Selected quote %d out of %d records", recno, records);
if (fseek(olf, olhdr.hdrsize + (recno * olhdr.recsize), SEEK_SET) == 0) {
if (fread(&ol, olhdr.recsize, 1, olf) == 1) {

View File

@ -144,7 +144,7 @@ long Msg_Top(char *template, int language, fidoaddr aka)
{
char *temp;
FILE *fp, *fi;
long fileptr, fileptr1 = 0L;
long fileptr, fileptr1 = -1L;
temp = calloc(PATH_MAX, sizeof(char));