Changeset 42389 for trunk/Ohana/src/imregister/base/ConfigInit.c
- Timestamp:
- Feb 8, 2023, 12:17:35 PM (3 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/imregister/base/ConfigInit.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
trunk/Ohana/src/imregister/base/ConfigInit.c
r25757 r42389 6 6 7 7 int i, NDB; 8 char *config, *file, ElixirBase[80], catdir[ 256];9 char CatdirPhotcodeFile[ 256];10 char MasterPhotcodeFile[ 256];8 char *config, *file, ElixirBase[80], catdir[MY_MAX_PATH]; 9 char CatdirPhotcodeFile[MY_MAX_PATH]; 10 char MasterPhotcodeFile[MY_MAX_PATH]; 11 11 12 12 /*** load configuration info ***/ … … 28 28 WarnConfig (config, "CATDIR", "%s", 0, catdir); 29 29 WarnConfig (config, "PHOTCODE_FILE", "%s", 0, MasterPhotcodeFile); 30 s printf (ImPhotDB, "%s/Images.dat", catdir);30 snprintf_nowarn (ImPhotDB, MY_MAX_PATH, "%s/Images.dat", catdir); 31 31 32 32 /* small text databases: filters, camera defs */ … … 75 75 76 76 WarnConfig (config, "imstats", "%s", 0, ElixirBase); 77 s printf (ImstatFifo, "%s.photcode", ElixirBase);77 snprintf_nowarn (ImstatFifo, MY_MAX_PATH, "%s.photcode", ElixirBase); 78 78 WarnConfig (config, "ptolemy", "%s", 0, ElixirBase); 79 s printf (PtolemyFifo, "%s.photcode", ElixirBase);79 snprintf_nowarn (PtolemyFifo, MY_MAX_PATH, "%s.photcode", ElixirBase); 80 80 81 81 if (!ScanConfig (config, "CONNECT", "%s", 0, CONNECT)) { 82 s printf (CONNECT, "/usr/bin/rsh");82 snprintf_nowarn (CONNECT, 64, "/usr/bin/rsh"); 83 83 } 84 84 … … 87 87 NDetrendAltDB = 0; 88 88 ALLOCATE (DetrendAltDB, char *, NDB); 89 ALLOCATE (DetrendAltDB[NDetrendAltDB], char, 256);89 ALLOCATE (DetrendAltDB[NDetrendAltDB], char, MY_MAX_PATH); 90 90 for (i = 1; ScanConfig (config, "DETREND_ALT_DB", "%s", i, DetrendAltDB[NDetrendAltDB]); i++) { 91 91 NDetrendAltDB ++; … … 94 94 REALLOCATE (DetrendAltDB, char *, NDB); 95 95 } 96 ALLOCATE (DetrendAltDB[NDetrendAltDB], char, 256);96 ALLOCATE (DetrendAltDB[NDetrendAltDB], char, MY_MAX_PATH); 97 97 } 98 98 free (DetrendAltDB[NDetrendAltDB]); … … 104 104 105 105 /* XXX this does not yet write out the master photcode table */ 106 s printf (CatdirPhotcodeFile, "%s/Photcodes.dat", catdir);106 snprintf_nowarn (CatdirPhotcodeFile, MY_MAX_PATH, "%s/Photcodes.dat", catdir); 107 107 if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile, TRUE)) { 108 108 fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile);
Note:
See TracChangeset
for help on using the changeset viewer.
