IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19259


Ignore:
Timestamp:
Aug 28, 2008, 10:00:24 AM (18 years ago)
Author:
eugene
Message:

extend 64 byte name limit to 128

Location:
trunk/Ohana/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/LoadData.c

    r16982 r19259  
    11# include "addstar.h"
     2# define DVO_IMAGE_NAME_LEN 128
    23
    34// XXX this function is somewhat specific to the elixir format output files
     
    4344    // XXX use something to set the chip name? EXTNAME?
    4445    if (!strcmp(headerSets[i].exthead, "PHU") && (Nimages == 1)) {
    45       snprintf (images[0][Nvalid].name, 64, "%s", name);
     46      snprintf (images[0][Nvalid].name, DVO_IMAGE_NAME_LEN, "%s", name);
    4647    } else {
    47       snprintf (images[0][Nvalid].name, 64, "%s[%s]", name, headerSets[i].exthead);
     48      snprintf (images[0][Nvalid].name, DVO_IMAGE_NAME_LEN, "%s[%s]", name, headerSets[i].exthead);
    4849    }
    4950
  • trunk/Ohana/src/addstar/src/LoadDataPMM.c

    r16967 r19259  
    11# include "addstar.h"
     2# define DVO_IMAGE_NAME_LEN 128
    23
    34/* .asc files look like:
     
    246247
    247248    // save the filename
    248     snprintf (image[0].name, 64, "%s", datafile);
     249    snprintf (image[0].name, DVO_IMAGE_NAME_LEN, "%s", datafile);
    249250    return photcode;
    250251  }
  • trunk/Ohana/src/addstar/src/ReadStarsSDSS.c

    r16937 r19259  
    11# include "addstar.h"
     2# define DVO_IMAGE_NAME_LEN 128
    23int SetSDSSFlags (Stars *star, unsigned int flags1, unsigned int flags2);
    34
     
    260261
    261262    // save the filename
    262     snprintf (images[N].name, 64, "%s[%s]", name, filtname[i]);
     263    snprintf (images[N].name, DVO_IMAGE_NAME_LEN, "%s[%s]", name, filtname[i]);
    263264  }
    264265
  • trunk/Ohana/src/addstar/src/sky_tessalation.c

    r16390 r19259  
    22# include "assert.h"
    33# define iSWAP(X,Y) {int tmp=(X); (X) = (Y); (Y) = tmp;}
     4# define DVO_IMAGE_NAME_LEN 128
    45
    56// we use a static refcoords structure to avoid multiple alloc / init steps
     
    7778    for (j = 0; j < Ntriangles; j++) {
    7879      sky_triangle_to_image (&image[j], &tri[j]);
    79       snprintf (image[j].name, 64, format, Nout);
     80      snprintf (image[j].name, DVO_IMAGE_NAME_LEN, format, Nout);
    8081      Nout++;
    8182    } 
     
    160161      if (!strcmp(rectangle[j].coords.ctype, "DROP")) continue;
    161162      memcpy (&subset[Nsubset], &rectangle[j], sizeof(SkyRectangle));
    162       snprintf (subset[Nsubset].name, 64, format, Nname);
     163      snprintf (subset[Nsubset].name, DVO_IMAGE_NAME_LEN, format, Nname);
    163164      Nname++;
    164165      Nsubset++;
     
    427428      memcpy (&output[N].coords, &input[0].coords, sizeof(Coords));
    428429
    429       snprintf (output[N].name, 64, format, N);
     430      snprintf (output[N].name, DVO_IMAGE_NAME_LEN, format, N);
    430431      output[N].NX = NX;
    431432      output[N].NY = NY;
  • trunk/Ohana/src/getstar/src/ReadImageFiles.c

    r15487 r19259  
    11# include "dvoImageOverlaps.h"
     2# define DVO_IMAGE_NAME_LEN 128
    23
    34Image *ReadImageFiles (char *filename, int *Nimages) {
     
    6364      /* find image rootname */
    6465      name = filebasename (file[i]);
    65       snprintf (image[N].name, 64, name);
     66      snprintf (image[N].name, DVO_IMAGE_NAME_LEN, name);
    6667      free (name);
    6768
     
    195196      // XXX use something to set the chip name? EXTNAME?
    196197      if (!strcmp(exthead[i], "PHU") && (Nimage == 1)) {
    197         snprintf (image[N].name, 64, "%s", name);
     198        snprintf (image[N].name, DVO_IMAGE_NAME_LEN, "%s", name);
    198199      } else {
    199         snprintf (image[N].name, 64, "%s[%s]", name, exthead[i]);
     200        snprintf (image[N].name, DVO_IMAGE_NAME_LEN, "%s[%s]", name, exthead[i]);
    200201      }
    201202
Note: See TracChangeset for help on using the changeset viewer.