some small fixes
This commit is contained in:
parent
8bbc4154a7
commit
882f2af32c
@ -217,7 +217,6 @@ void Cookie(void)
|
|||||||
firstrandom = FALSE;
|
firstrandom = FALSE;
|
||||||
}
|
}
|
||||||
recno = 1+(int) (1.0 * records * rand() / (RAND_MAX + 1.0));
|
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 (fseek(olf, olhdr.hdrsize + (recno * olhdr.recsize), SEEK_SET) == 0) {
|
||||||
if (fread(&ol, olhdr.recsize, 1, olf) == 1) {
|
if (fread(&ol, olhdr.recsize, 1, olf) == 1) {
|
||||||
|
@ -144,7 +144,7 @@ long Msg_Top(char *template, int language, fidoaddr aka)
|
|||||||
{
|
{
|
||||||
char *temp;
|
char *temp;
|
||||||
FILE *fp, *fi;
|
FILE *fp, *fi;
|
||||||
long fileptr, fileptr1 = 0L;
|
long fileptr, fileptr1 = -1L;
|
||||||
|
|
||||||
temp = calloc(PATH_MAX, sizeof(char));
|
temp = calloc(PATH_MAX, sizeof(char));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user