diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-04-16 20:05:06 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-04-16 20:05:06 +0000 |
commit | 0e7b2118cbe77c28655ff3e45b9d8a22b724b2ed (patch) | |
tree | 0f63bb5cc0b12b02ed73fc66a73bcc7c8c25bc22 /usr.bin/cvs/util.c | |
parent | 6ea60b1ca8bf98a22c223f177182274b0a6eb78a (diff) |
more snprintf return value check; joris ok
Diffstat (limited to 'usr.bin/cvs/util.c')
-rw-r--r-- | usr.bin/cvs/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c index f175231779e..47f56fa314c 100644 --- a/usr.bin/cvs/util.c +++ b/usr.bin/cvs/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.21 2005/04/16 18:07:35 xsa Exp $ */ +/* $OpenBSD: util.c,v 1.22 2005/04/16 20:05:05 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -559,7 +559,7 @@ cvs_mkadmin(CVSFILE *cdir, mode_t mode) (void)fclose(fp); } - snprintf(path, sizeof(path), "%s/" CVS_PATH_REPOSITORY, dpath); + l = snprintf(path, sizeof(path), "%s/" CVS_PATH_REPOSITORY, dpath); if (l == -1 || l >= (int)sizeof(path)) { errno = ENAMETOOLONG; cvs_log(LP_ERRNO, "%s", path); |