=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/rcsutil.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/rcs/rcsutil.c 2006/05/09 12:31:27 1.10 --- src/usr.bin/rcs/rcsutil.c 2006/05/27 02:58:02 1.11 *************** *** 1,4 **** ! /* $OpenBSD: rcsutil.c,v 1.10 2006/05/09 12:31:27 ray Exp $ */ /* * Copyright (c) 2005, 2006 Joris Vink * Copyright (c) 2006 Xavier Santolaria --- 1,4 ---- ! /* $OpenBSD: rcsutil.c,v 1.11 2006/05/27 02:58:02 ray Exp $ */ /* * Copyright (c) 2005, 2006 Joris Vink * Copyright (c) 2006 Xavier Santolaria *************** *** 136,142 **** * should be. Tries each extension until a file is found. If no file * was found, returns a path with the first extension. * ! * Returns pointer to a char array on success, NULL on failure. */ int rcs_choosefile(const char *filename, char *out, size_t len) --- 136,142 ---- * should be. Tries each extension until a file is found. If no file * was found, returns a path with the first extension. * ! * Opens and returns file descriptor to RCS file. */ int rcs_choosefile(const char *filename, char *out, size_t len) *************** *** 254,261 **** * `suffixes' should now be NUL separated, so the first * extension can be read just by reading `suffixes'. */ ! if (strlcat(rcspath, suffixes, sizeof(rcspath)) >= ! sizeof(rcspath)) errx(1, "rcs_choosefile: truncation"); xfree(suffixes); --- 254,260 ---- * `suffixes' should now be NUL separated, so the first * extension can be read just by reading `suffixes'. */ ! if (strlcat(rcspath, suffixes, sizeof(rcspath)) >= sizeof(rcspath)) errx(1, "rcs_choosefile: truncation"); xfree(suffixes);