IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 6, 2018, 1:42:20 PM (8 years ago)
Author:
eugene
Message:

give enough space to avoid running out of room in snprintf, if possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/imregister/detrend/output.c

    r38441 r40501  
    193193int PrintSubset (DetReg *detdata, Match *match, off_t Nmatch) {
    194194 
    195   char *dBPath, *Path, *typestr, *filtstr, filename[128];
     195  char *dBPath, *Path, *typestr, *filtstr, filename[512];
    196196  char *timestr, *modestr, *ccdstr, ccdinfo[16], ccdformat[16];
    197197  off_t i, j;
     
    239239    /* output mode (Select vs List) */
    240240    if (output.Chipname && criteria[0].CCDSelect && detdata[i].mode == M_MEF) {
    241       snprintf (filename, 128, "%s[%s]", detdata[i].filename, ccds[criteria[0].CCD]);
     241      snprintf (filename, 512, "%s[%s]", detdata[i].filename, ccds[criteria[0].CCD]);
    242242    } else {
    243243      strcpy (filename, detdata[i].filename);
Note: See TracChangeset for help on using the changeset viewer.