diff options
author | 2006-06-16 20:01:10 +0000 | |
---|---|---|
committer | 2006-06-16 20:01:10 +0000 | |
commit | b4bdc5bb83dda3322aeab638c7c7e03bbe1f8fdc (patch) | |
tree | 7c7962b3a3cb8c776383e5b18f23422ac0e9b11f /usr.bin/cvs/diff.c | |
parent | - fix reassociations (the firmware was crashing because the configuration (diff) | |
download | wireguard-openbsd-b4bdc5bb83dda3322aeab638c7c7e03bbe1f8fdc.tar.xz wireguard-openbsd-b4bdc5bb83dda3322aeab638c7c7e03bbe1f8fdc.zip |
change a cvs_buf_load() to cvs_buf_load_fd()
spotted by xsa@ a few days ago
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r-- | usr.bin/cvs/diff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c index 4aca768f907..a1943bf3a20 100644 --- a/usr.bin/cvs/diff.c +++ b/usr.bin/cvs/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.104 2006/06/16 14:07:42 joris Exp $ */ +/* $OpenBSD: diff.c,v 1.105 2006/06/16 20:01:10 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -191,7 +191,7 @@ cvs_diff_local(struct cvs_file *cf) } else if (cf->file_status != FILE_REMOVED) { if (fstat(cf->fd, &st) == -1) fatal("fstat failed %s", strerror(errno)); - if ((b2 = cvs_buf_load(cf->file_path, BUF_AUTOEXT)) == NULL) + if ((b2 = cvs_buf_load_fd(cf->fd, BUF_AUTOEXT)) == NULL) fatal("failed to load %s", cf->file_path); st.st_mtime = cvs_hack_time(st.st_mtime, 1); |