Changeset 82820da for libcfa/src


Ignore:
Timestamp:
Aug 31, 2021, 1:49:10 AM (3 years ago)
Author:
Jacob Prud'homme <jafprudhomme@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum
Children:
12b5b226
Parents:
c1dafea
git-author:
Jacob Prud'homme <jafprudhomme@…> (08/03/21 01:57:22)
git-committer:
Jacob Prud'homme <jafprudhomme@…> (08/31/21 01:49:10)
Message:

Fixed issue caused by reuse of string buffers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseconfig.cfa

    rc1dafea r82820da  
    4545        }
    4646
    47         data[size] = [ k, v ];
     47        data[size].0 = alloc( strlen( k ) );
     48        data[size].1 = alloc( strlen( v ) );
     49        strcpy( data[size].0, k );
     50        strcpy( data[size].1, v );
    4851        ++size;
    4952}
Note: See TracChangeset for help on using the changeset viewer.