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/kapa2/include/structures.h

    r40419 r40501  
    6464  int      x, y, dx, dy;   /* position and size */
    6565  char    *label;          /* label on TextLine */
    66   char     text[1024];     /* words of TextLine */
    67   char     old_text[1024]; /* words of TextLine */
     66  char     text[LONG_LINE_LENGTH];     /* words of TextLine */
     67  char     old_text[LONG_LINE_LENGTH]; /* words of TextLine */
    6868  int      outline;        /* draw an outline?  */
    6969  int      cursor;         /* location of cursor (if selected) */
     
    179179  double   start, slope;   /* zero, range for cmap to pixels */
    180180  Coords   coords;
    181   char     file[1024];     /* name of file */
    182   char     name[1024];     /* name of buffer */
     181  char     file[LONG_LINE_LENGTH];     /* name of file */
     182  char     name[LONG_LINE_LENGTH];     /* name of buffer */
    183183} KapaImageChannel;
    184184
Note: See TracChangeset for help on using the changeset viewer.