Changeset 548c76b for tools/tracereport
- Timestamp:
- 02/21/14 15:24:49 (8 years ago)
- 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:
- 67b6d9e
- Parents:
- 4a2529b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracereport/misc_report.c
r755855a r548c76b 32 32 time_t sec = (time_t)ts; 33 33 static char ret[1024]; 34 str cpy(ret,ctime(&sec));34 strncpy(ret,ctime(&sec),1024-1); 35 35 ret[strlen(ret)-1]='\0'; /* Get rid of the annoying \n */ 36 36 return ret; … … 67 67 ts); 68 68 strncat(ret,tmp, 1024 - strlen(ret) - 1); 69 strcat(ret,tmp);70 69 } 71 70 return ret;
Note: See TracChangeset
for help on using the changeset viewer.