Mercurial > emacs
changeset 24386:fe2294e5627d
(get_boot_time): Don't use BUFSIZ.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 23 Feb 1999 22:09:47 +0000 |
parents | 92817fedff02 |
children | 32fd8c1e4e51 |
files | src/filelock.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/filelock.c Tue Feb 23 22:09:03 1999 +0000 +++ b/src/filelock.c Tue Feb 23 22:09:47 1999 +0000 @@ -116,12 +116,12 @@ while ((fd = open ("/proc/uptime", O_RDONLY)) >= 0) { - char buf[BUFSIZ]; + char buf[100]; int res; double upsecs; time_t uptime; - read (fd, buf, BUFSIZ); + read (fd, buf, sizeof buf); close (fd); res = sscanf (buf, "%lf", &upsecs);