Changeset 548c76b


Ignore:
Timestamp:
02/21/14 15:24:49 (7 years ago)
Author:
Shane Alcock <salcock@…>
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
Message:

Fix more strcpy's and strcats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracereport/misc_report.c

    r755855a r548c76b  
    3232        time_t sec = (time_t)ts;
    3333        static char ret[1024];
    34         strcpy(ret,ctime(&sec));
     34        strncpy(ret,ctime(&sec),1024-1);
    3535        ret[strlen(ret)-1]='\0'; /* Get rid of the annoying \n */
    3636        return ret;
     
    6767                                ts);
    6868                strncat(ret,tmp, 1024 - strlen(ret) - 1);
    69                 strcat(ret,tmp);
    7069        }
    7170        return ret;
Note: See TracChangeset for help on using the changeset viewer.