From: Karl Heuer Date: Tue, 23 Feb 1999 22:09:47 +0000 (+0000) Subject: (get_boot_time): Don't use BUFSIZ. X-Git-Tag: emacs-20.4~563 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8e339303f40bcb80c7bdddb2237b18cd21fc8586;p=emacs.git (get_boot_time): Don't use BUFSIZ. --- diff --git a/src/filelock.c b/src/filelock.c index fc00647baba..c80f75ce924 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -116,12 +116,12 @@ get_boot_time () 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);