Changeset c510a7 for pcp/src/helpers.c


Ignore:
Timestamp:
Apr 29, 2008, 12:19:51 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
e936b3
Parents:
307fd1
Message:

char lengths of 255 and MAXDUMMYSTRING replaced with define MAXSTRINGSIZE in molecuilder and pcp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pcp/src/helpers.c

    r307fd1 rc510a7  
    9292void* Malloci(size_t size, const char* output, int i)
    9393{
    94   char dummyoutput[MAXDUMMYSTRING];
     94  char dummyoutput[MAXSTRINGSIZE];
    9595  void* dummy = (void *) malloc(size);
    9696  if (!dummy) {
     
    110110void* Mallocii(size_t size, const char* output, int i, int j)
    111111{
    112   char dummyoutput[MAXDUMMYSTRING];
     112  char dummyoutput[MAXSTRINGSIZE];
    113113  void* dummy = (void *) malloc(size);
    114114  if (!dummy) {
     
    142142void* Realloci(void* pointer, size_t size, const char* output, int i)
    143143{
    144   char dummyoutput[MAXDUMMYSTRING];
     144  char dummyoutput[MAXSTRINGSIZE];
    145145  void *dummy = (void *) realloc(pointer, size);
    146146  if (!dummy) {
     
    161161void* Reallocii(void* pointer, size_t size, const char* output, int i, int j)
    162162{
    163   char dummyoutput[MAXDUMMYSTRING];
     163  char dummyoutput[MAXSTRINGSIZE];
    164164  void *dummy = (void *) realloc(pointer, size);
    165165  if (!dummy) {
     
    234234  int info;
    235235  char processor_name[MPI_MAX_PROCESSOR_NAME];
    236   char dummy[MAXDUMMYSTRING];
     236  char dummy[MAXSTRINGSIZE];
    237237  P->Par.procs = P->Par.proc[PEPsi]*P->Par.proc[PEGamma];
    238238  P->Par.me = -1; /* eigene Position noch unklar */
Note: See TracChangeset for help on using the changeset viewer.