Changeset 1281c34 in rtems


Ignore:
Timestamp:
Feb 23, 2015, 3:38:37 PM (5 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
4.11, master
Children:
25e14e3
Parents:
83fe4468
Message:

Use counted strnlen in bin2c. Closes #2238.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/build/rtems-bin2c.c

    r83fe4468 r1281c34  
    7373
    7474  strncpy( obasename, ofname, PATH_MAX );
    75   len = strlen( obasename );
     75  len = strnlen( obasename, PATH_MAX );
    7676  if ( len >= 2 ) {
    7777    if ( obasename[len-2] == '.' ) {
Note: See TracChangeset for help on using the changeset viewer.