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

Comparing ray/src/rt/editline.c (file contents):
Revision 2.5 by greg, Tue Feb 25 02:47:22 2003 UTC vs.
Revision 2.7 by schorsch, Sun Jul 27 22:12:03 2003 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9  
10   #include "copyright.h"
11  
12 + #include <stdio.h>
13 +
14   #include "color.h"
15  
16   #include "driver.h"
# Line 82 | Line 84 | register struct driver  *d;
84          for (cp = mybuf; *cp; cp++)
85                  ;
86          comstart = cp;
87 <        while (*cp++ = *b)
87 >        while ( (*cp++ = *b) )
88                  if (cp >= mybuf+sizeof(mybuf)) {
89                          *comstart = '\0';
90                          return;         /* what should I do about this? */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines