ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/bsdf.c
(Generate patch)

Comparing ray/src/common/bsdf.c (file contents):
Revision 2.39 by greg, Mon Mar 5 00:17:06 2012 UTC vs.
Revision 2.40 by greg, Mon Mar 5 15:27:08 2012 UTC

# Line 94 | Line 94 | SDloadGeometry(SDData *sd, ezxml_t wdb)
94                  return SDEnone;
95          if ((geom = ezxml_child(wdb, "Name")) != NULL) {
96                  strncpy(sd->matn, ezxml_txt(geom), SDnameLn);
97 <                sd->matn[SDnameLn-1] = '\0';
97 >                if (sd->matn[SDnameLn-1])
98 >                        strcpy(sd->matn+(SDnameLn-4), "...");
99          }
100          if ((geom = ezxml_child(wdb, "Manufacturer")) != NULL) {
101                  strncpy(sd->makr, ezxml_txt(geom), SDnameLn);
102 <                sd->makr[SDnameLn-1] = '\0';
102 >                if (sd->makr[SDnameLn-1])
103 >                        strcpy(sd->makr+(SDnameLn-4), "...");
104          }
105          sd->dim[0] = sd->dim[1] = sd->dim[2] = .0;
106          SDerrorDetail[0] = '\0';

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines