diff options
| author | Frank Warmerdam <warmerdam@pobox.com> | 2001-04-20 13:31:22 +0000 |
|---|---|---|
| committer | Frank Warmerdam <warmerdam@pobox.com> | 2001-04-20 13:31:22 +0000 |
| commit | dfd869db78f6567a20c1231e8f3b212dc7d3910a (patch) | |
| tree | 17a189fd54c5f268f8ea43ef9e9aadc830a79582 /src | |
| parent | 5bb65385f4b00945377be5f97134b9facd4c81df (diff) | |
| download | PROJ-dfd869db78f6567a20c1231e8f3b212dc7d3910a.tar.gz PROJ-dfd869db78f6567a20c1231e8f3b212dc7d3910a.zip | |
ensure def files are opened in text modeproj_4_4_3
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@955 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src')
| -rw-r--r-- | src/pj_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pj_init.c b/src/pj_init.c index 7a9d4822..ef002a87 100644 --- a/src/pj_init.c +++ b/src/pj_init.c @@ -43,7 +43,7 @@ get_opt(FILE *fid, char *name, paralist *next) { get_defaults(paralist *next, char *name) { FILE *fid; - if (fid = pj_open_lib("proj_def.dat", "r")) { + if (fid = pj_open_lib("proj_def.dat", "rt")) { next = get_opt(fid, "general", next); rewind(fid); next = get_opt(fid, name, next); @@ -62,7 +62,7 @@ get_init(paralist *next, char *name) { if (opt = strrchr(fname, ':')) *opt++ = '\0'; else { pj_errno = -3; return(0); } - if (fid = pj_open_lib(fname, "r")) + if (fid = pj_open_lib(fname, "rt")) next = get_opt(fid, opt, next); else return(0); |
