]> git.eshelyaron.com Git - emacs.git/commitdiff
(get_boot_time): Don't use BUFSIZ.
authorKarl Heuer <kwzh@gnu.org>
Tue, 23 Feb 1999 22:09:47 +0000 (22:09 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 23 Feb 1999 22:09:47 +0000 (22:09 +0000)
src/filelock.c

index fc00647baba5402e00ec4b1bf997fad3468ff58d..c80f75ce92427541cf5e10b932275ed54b40d890 100644 (file)
@@ -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);