rudely public ragging on this one.
SCCS-vsn: usr.sbin/sendmail/src/conf.c 4.9
SCCS-vsn: usr.sbin/sendmail/src/version.c 4.52
-SCCSID(@(#)conf.c 4.8 %G%);
+SCCSID(@(#)conf.c 4.9 %G%);
\f/*
** Header info table
** Final (null) entry contains the flags used for any other field.
\f/*
** Header info table
** Final (null) entry contains the flags used for any other field.
if (Nl[0].n_type == 0)
return (-1);
}
if (Nl[0].n_type == 0)
return (-1);
}
- (void) lseek(kmem, (long) Nl[X_AVENRUN].n_value, 0);
- (void) read(kmem, avenrun, sizeof(avenrun));
+ if (lseek(kmem, (long) Nl[X_AVENRUN].n_value, 0) < 0 ||
+ read(kmem, avenrun, sizeof(avenrun)) < sizeof(avenrun))
+ {
+ /* thank you Ian */
+ return (-1);
+ }
return ((int) (avenrun[0] + 0.5));
}
return ((int) (avenrun[0] + 0.5));
}
-static char SccsId[] = "@(#)SendMail version 4.51 of %G%";
+static char SccsId[] = "@(#)SendMail version 4.52 of %G%";
-char Version[] = "4.51";
+char Version[] = "4.52";