Changeset 15


Ignore:
Timestamp:
Oct 18, 2011, 11:46:26 AM (10 years ago)
Author:
r.w.w.brouwer@…
Message:

Fixed memmory bug in qseq2fastq

Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/narwhal/src/cpp/qseq2fastq/src/main.c

    r3 r15  
    117117    // prepare the variables for the next round
    118118    fbuffer[0] = '\0' ;
    119     /*
     119
     120
     121    // allocate the memmory   
     122    i_buff = (char *)malloc( i_size * sizeof(char) ) ;
     123    s_buff = (char *)malloc( s_size * sizeof(char) ) ;
     124    q_buff = (char *)malloc( q_size * sizeof(char) ) ;
     125
     126    // clean the memmory
    120127    i_buff[0]  = '\0' ;
    121128    s_buff[0]  = '\0' ;
    122129    q_buff[0]  = '\0' ;
    123     */
    124     i_buff = (char *)malloc( i_size * sizeof(char) ) ;
    125     s_buff = (char *)malloc( s_size * sizeof(char) ) ;
    126     q_buff = (char *)malloc( q_size * sizeof(char) ) ;
    127 
    128130
    129131    t_count    = 0 ;
Note: See TracChangeset for help on using the changeset viewer.