IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40504


Ignore:
Timestamp:
Jul 6, 2018, 4:50:24 PM (8 years ago)
Author:
eugene
Message:

make sure photcodeFile matches sprintf statement

Location:
trunk/Ohana/src/libdvo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/include/dvo_util.h

    r39457 r40504  
    77
    88#include <dvo.h>
     9#define PHOTCODE_FILE_SIZE 280
    910
    1011typedef struct {
     
    1314  char        catmode[256];
    1415  char        catformat[256];
    15   char        photcodeFile[256];
     16  char        photcodeFile[PHOTCODE_FILE_SIZE];
    1617  char        skyTableFile[256];
    1718  int         skyDepth;
  • trunk/Ohana/src/libdvo/src/dvo_util.c

    r40498 r40504  
    6161
    6262  // photcodeFile[] must be > catdir[]
    63   snprintf (dvoConfig->photcodeFile, 280, "%s/Photcodes.dat", dvoConfig->catdir);
     63  snprintf (dvoConfig->photcodeFile, PHOTCODE_FILE_SIZE, "%s/Photcodes.dat", dvoConfig->catdir);
    6464  if (!LoadPhotcodes (dvoConfig->photcodeFile, MasterPhotcodeFile, FALSE)) {
    6565    fprintf (stderr, "error loading photcode table %s or master file %s\n",
Note: See TracChangeset for help on using the changeset viewer.