diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2006-06-16 20:01:11 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2006-06-16 20:01:11 +0000 |
commit | 86c6a233dbaca49f88a2a557c884d9ff72d429b0 (patch) | |
tree | 6d99d53fb6d0420f63334a6fe66464d6f38ade29 /usr.bin | |
parent | ed56fec0efca32c4b1ddbb86885419e6dc009121 (diff) |
change a cvs_buf_load() to cvs_buf_load_fd()
spotted by xsa@ a few days ago
Diffstat (limited to 'usr.bin')
-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); |