IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13886


Ignore:
Timestamp:
Jun 19, 2007, 2:09:30 PM (19 years ago)
Author:
eugene
Message:

name length extended to 64 bytes

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

Legend:

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

    r13823 r13886  
    6868      /* find image rootname */
    6969      name = filebasename (file[i]);
    70       snprintf (image[N].name, 32, name);
     70      snprintf (image[N].name, 64, name);
    7171      free (name);
    7272   
     
    226226      // XXX use something to set the chip name? EXTNAME?
    227227      if (!strcmp(exthead[i], "PHU") && (Nimage == 1)) {
    228         snprintf (image[N].name, 32, "%s", name);
     228        snprintf (image[N].name, 64, "%s", name);
    229229      } else {
    230         snprintf (image[N].name, 32, "%s[%s]", name, exthead[i]);
     230        snprintf (image[N].name, 64, "%s[%s]", name, exthead[i]);
    231231      }
    232232
  • trunk/Ohana/src/addstar/src/sky_tessalation.c

    r13645 r13886  
    7575    for (j = 0; j < Ntriangles; j++) {
    7676      sky_triangle_to_image (&image[j], &tri[j]);
    77       snprintf (image[j].name, 32, format, Nout);
     77      snprintf (image[j].name, 64, format, Nout);
    7878      Nout++;
    7979    } 
     
    155155      if (!strcmp(image[j].coords.ctype, "DROP")) continue;
    156156      memcpy (&out[Nout], &image[j], sizeof(Image));
    157       snprintf (out[Nout].name, 32, format, Nname);
     157      snprintf (out[Nout].name, 64, format, Nname);
    158158      Nname++;
    159159      Nout++;
     
    267267
    268268      memcpy (&output[N], &input[0], sizeof(Image));
    269       snprintf (output[N].name, 32, format, N);
     269      snprintf (output[N].name, 64, format, N);
    270270
    271271      // output[0].coords = input[0].coords;
Note: See TracChangeset for help on using the changeset viewer.