diff options
author | Karl Heuer <kwzh@gnu.org> | 1999-02-23 22:09:47 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1999-02-23 22:09:47 +0000 |
commit | 8e339303f40bcb80c7bdddb2237b18cd21fc8586 (patch) | |
tree | f80dba20631667e5d31781572d5ed21b31c2bb59 /src/filelock.c | |
parent | 7554590250aba22de37722ac7c8dba11414de400 (diff) | |
download | emacs-8e339303f40bcb80c7bdddb2237b18cd21fc8586.tar.gz |
(get_boot_time): Don't use BUFSIZ.
Diffstat (limited to 'src/filelock.c')
-rw-r--r-- | src/filelock.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |