Ignore:
Timestamp:
Dec 14, 2007 5:27:13 PM (17 years ago)
Author:
bennylp
Message:

Calling strncpy with a maximum size argument of (32) on destination buffer '(pool)->obj_name' of size (32) can possibly leave the destination buffer lacking null-termination

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/pool.c

    r1417 r1633  
    160160        } else { 
    161161            pj_ansi_strncpy(pool->obj_name, name, PJ_MAX_OBJ_NAME); 
     162            pool->obj_name[PJ_MAX_OBJ_NAME-1] = '\0'; 
    162163        } 
    163164    } else { 
Note: See TracChangeset for help on using the changeset viewer.