=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/Attic/resp.c,v retrieving revision 1.69 retrieving revision 1.70 diff -c -r1.69 -r1.70 *** src/usr.bin/cvs/Attic/resp.c 2006/01/25 08:15:05 1.69 --- src/usr.bin/cvs/Attic/resp.c 2006/01/26 09:05:31 1.70 *************** *** 1,4 **** ! /* $OpenBSD: resp.c,v 1.69 2006/01/25 08:15:05 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: resp.c,v 1.70 2006/01/26 09:05:31 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 391,397 **** static int cvs_resp_createdir(char *line) { - int l; CVSFILE *base, *cf; CVSENTRIES *entf; struct stat st; --- 391,396 ---- *************** *** 447,454 **** */ if (entf != NULL) { if ((ent = cvs_ent_get(entf, cf->cf_name)) == NULL) { ! l = snprintf(buf, sizeof(buf), "D/%s////", cf->cf_name); ! if (l == -1 || l >= (int)sizeof(buf)) { cvs_file_free(cf); cvs_file_free(base); return (-1); --- 446,455 ---- */ if (entf != NULL) { if ((ent = cvs_ent_get(entf, cf->cf_name)) == NULL) { ! if (strlcpy(buf, "D/", sizeof(buf)) >= sizeof(buf) || ! strlcat(buf, cf->cf_name, sizeof(buf)) >= ! sizeof(buf) || ! strlcat(buf, "////", sizeof(buf)) >= sizeof(buf)) { cvs_file_free(cf); cvs_file_free(base); return (-1);