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

Comparing ray/src/cv/mgflib/object.c (file contents):
Revision 1.2 by greg, Wed Jun 22 15:33:46 1994 UTC vs.
Revision 1.3 by greg, Wed May 10 17:18:45 1995 UTC

# Line 18 | Line 18 | char   **obj_name;                     /* name list */
18  
19   static int      obj_maxname;            /* allocated list size */
20  
21 < #define ALLOC_INC       16              /* list increment */
21 > #define ALLOC_INC       16              /* list increment ( > 1 ) */
22  
23  
24   int
# Line 35 | Line 35 | char   **av;
35          }
36          if (ac != 2)
37                  return(MG_EARGC);
38 <        if (obj_nnames >= obj_maxname) {        /* enlarge array */
38 >        if (obj_nnames >= obj_maxname-1) {      /* enlarge array */
39                  if (!obj_maxname)
40                          obj_name = (char **)malloc(
41                                  (obj_maxname=ALLOC_INC)*sizeof(char *));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines