[BACK]Return to resp.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/Attic/resp.c between version 1.69 and 1.70

version 1.69, 2006/01/25 08:15:05 version 1.70, 2006/01/26 09:05:31
Line 391 
Line 391 
 static int  static int
 cvs_resp_createdir(char *line)  cvs_resp_createdir(char *line)
 {  {
         int l;  
         CVSFILE *base, *cf;          CVSFILE *base, *cf;
         CVSENTRIES *entf;          CVSENTRIES *entf;
         struct stat st;          struct stat st;
Line 447 
Line 446 
          */           */
         if (entf != NULL) {          if (entf != NULL) {
                 if ((ent = cvs_ent_get(entf, cf->cf_name)) == NULL) {                  if ((ent = cvs_ent_get(entf, cf->cf_name)) == NULL) {
                         l = snprintf(buf, sizeof(buf), "D/%s////", cf->cf_name);                          if (strlcpy(buf, "D/", sizeof(buf)) >= sizeof(buf) ||
                         if (l == -1 || l >= (int)sizeof(buf)) {                              strlcat(buf, cf->cf_name, sizeof(buf)) >=
                               sizeof(buf) ||
                               strlcat(buf, "////", sizeof(buf)) >= sizeof(buf)) {
                                 cvs_file_free(cf);                                  cvs_file_free(cf);
                                 cvs_file_free(base);                                  cvs_file_free(base);
                                 return (-1);                                  return (-1);

Legend:
Removed from v.1.69  
changed lines
  Added in v.1.70