6 |
|
*/ |
7 |
|
|
8 |
|
#include <stdio.h> |
9 |
< |
|
9 |
> |
#include "paths.h" |
10 |
|
#include "platform.h" |
11 |
|
#include "resolu.h" |
12 |
|
#include "holo.h" |
13 |
|
|
14 |
– |
char *progname; /* global argv[0] */ |
15 |
– |
|
14 |
|
char *mat, *name; /* material and object id */ |
15 |
|
double rad; /* grid line radius */ |
16 |
|
|
27 |
|
{ |
28 |
|
int sect; |
29 |
|
|
30 |
< |
progname = argv[0]; |
30 |
> |
fixargv0(argv[0]); |
31 |
|
if ((argc < 5) | (argc > 6)) |
32 |
|
goto userr; |
33 |
|
mat = argv[1]; |
57 |
|
int32 nextloc; |
58 |
|
int n; |
59 |
|
/* open holodeck file */ |
60 |
< |
if ((fp = fopen(fname, "r")) == NULL) { |
60 |
> |
if ((fp = fopen(fname, "rb")) == NULL) { |
61 |
|
sprintf(errmsg, "cannot open \"%s\"", fname); |
62 |
|
error(SYSTEM, errmsg); |
63 |
|
} |