Ignore:
Timestamp:
11/27/08 11:25:45 (13 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
1b0fb63
Parents:
530bcf0
Message:

Fix some warnings found on mroe recent gcc's
Bump version and release 3.0.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracertstats/output_png.c

    r3d4fb8f rf20d66c  
    99#include <inttypes.h>
    1010#include <lt_inttypes.h>
     11#include <err.h>
    1112
    1213struct private_png_t {
     
    5455        float data2[(out->columns-1)/2][prv->rows];
    5556        for(i=0;i<prv->rows;++i) {
    56                 asprintf(&labels[i],"%i",(int)prv->data[i*out->columns]);
     57                if (asprintf(&labels[i],"%i",(int)prv->data[i*out->columns])==-1) {
     58                        err(1,"Out of memory");
     59                }
    5760                for(j=0;j<(out->columns-1)/2;++j) {
    5861                        data1[j][i]=prv->data[i*out->columns+j*2+1];
Note: See TracChangeset for help on using the changeset viewer.