IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39405


Ignore:
Timestamp:
Feb 26, 2016, 9:21:19 AM (10 years ago)
Author:
eugene
Message:

replace some stack variables with heap

File:
1 edited

Legend:

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

    r38986 r39405  
    66  glob_t globList;
    77  AddstarFile *file;
    8   char line[4096], word1[4096], word2[4096], sep[4096];
     8
     9  char *line, *word1, *word2, *sep;
     10  ALLOCATE (line, char, 4096);
     11  ALLOCATE (word1, char, 4096);
     12  ALLOCATE (word2, char, 4096);
     13  ALLOCATE (sep, char, 4096);
    914
    1015  if (options[0].filelist) {
     
    7883  }
    7984  *nfile = Nfile;
     85
     86  free (line);
     87  free (word1);
     88  free (word2);
     89  free (sep);
     90
    8091  return (file);
    8192}
Note: See TracChangeset for help on using the changeset viewer.