- Timestamp:
- Jul 6, 2018, 1:06:27 PM (8 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 2 edited
-
addstar/src/sky_tessalation.c (modified) (2 diffs)
-
libdvo/src/dvo_util.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/sky_tessalation.c
r39457 r40498 815 815 816 816 int i, j, N, NX, NY, Ndigit; 817 char format[ 24];817 char format[80]; 818 818 819 819 NX = input[0].NX/(double)Nx + 0.5; … … 829 829 if (Nx * Ny > 1) { 830 830 Ndigit = (int)(log10(Nx*Ny)) + 1 ; 831 snprintf (format, 24, "%s.%%0%dd", input[0].name, Ndigit);831 snprintf (format, 80, "%s.%%0%dd", input[0].name, Ndigit); 832 832 } else { 833 snprintf (format, 24, "%s", input[0].name);833 snprintf (format, 80, "%s", input[0].name); 834 834 } 835 835 -
trunk/Ohana/src/libdvo/src/dvo_util.c
r39457 r40498 60 60 } 61 61 62 snprintf (dvoConfig->photcodeFile, 256, "%s/Photcodes.dat", dvoConfig->catdir); 62 // photcodeFile[] must be > catdir[] 63 snprintf (dvoConfig->photcodeFile, 280, "%s/Photcodes.dat", dvoConfig->catdir); 63 64 if (!LoadPhotcodes (dvoConfig->photcodeFile, MasterPhotcodeFile, FALSE)) { 64 65 fprintf (stderr, "error loading photcode table %s or master file %s\n", … … 95 96 } 96 97 97 char filename[2 56];98 char filename[280]; 98 99 99 snprintf (filename, 2 56, "%s/Images.dat", dvoConfig->catdir);100 snprintf (filename, 280, "%s/Images.dat", dvoConfig->catdir); 100 101 101 102 gfits_db_init (&dvoConfig->imageDB);
Note:
See TracChangeset
for help on using the changeset viewer.
