Changeset 23e1258 for lib/trace.c


Ignore:
Timestamp:
10/13/09 16:27:12 (11 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:
db03808
Parents:
67e9e2e
Message:

Fix bug with autodetection of dag cards

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r1aa4bf7 r23e1258  
    269269                if (tmp->probe_filename && tmp->probe_filename(filename)) {
    270270                        libtrace->format = tmp;
    271                         libtrace->uridata = malloc(strlen(tmp->name)+1+strlen(filename)+1);
    272                         strcpy(libtrace->uridata,tmp->name);
    273                         strcat(libtrace->uridata,":");
    274                         strcat(libtrace->uridata,filename);
     271                        libtrace->uridata = strdup(filename);
    275272                        return;
    276273                }
     
    285282                if (tmp->probe_magic && tmp->probe_magic(libtrace->io)) {
    286283                        libtrace->format = tmp;
    287                         libtrace->uridata = malloc(strlen(tmp->name)+1+strlen(filename)+1);
    288                         strcpy(libtrace->uridata,tmp->name);
    289                         strcat(libtrace->uridata,":");
    290                         strcat(libtrace->uridata,filename);
     284                        libtrace->uridata = strdup(filename);
    291285                        return;
    292286                }
Note: See TracChangeset for help on using the changeset viewer.