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

Comparing ray/src/px/xshowtrace.c (file contents):
Revision 2.8 by greg, Fri Jun 27 06:53:22 2003 UTC vs.
Revision 2.9 by schorsch, Mon Nov 10 12:28:56 2003 UTC

# Line 7 | Line 7 | static const char      RCSid[] = "$Id$";
7   *      9/21/90 Greg Ward
8   */
9  
10 + #include <X11/Xlib.h>
11 +
12   #include "standard.h"
13 + #include "paths.h"
14   #include "view.h"
12 #include <X11/Xlib.h>
15  
16   #define MAXDEPTH        32              /* ridiculous ray tree depth */
17  
# Line 49 | Line 51 | int    argc;
51   char    *argv[];
52   {
53          int     i;
54 <        char    combuf[256];
54 >        char    combuf[PATH_MAX];
55  
56          progname = argv[0];
57          for (i = 1; i < argc-2; i++)
# Line 78 | Line 80 | char   *argv[];
80                  exit(1);
81          }
82                                          /* build input command */
83 <        sprintf(combuf, "%s %s | %s", xicom, picture, rtcom);
83 >        sprintf(combuf, "%s \"%s\" | %s", xicom, picture, rtcom);
84          for ( ; i < argc-1; i++) {
85                  strcat(combuf, " ");
86                  strcat(combuf, argv[i]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines