Ignore:
Timestamp:
08/12/11 15:45:16 (14 years ago)
Author:
Eric.Larour
Message:

Replaced strcpy by memcpy. For security reasons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/KML/KML_LineString.cpp

    r9320 r9336  
    2626        extrude   =false;
    2727        tessellate=false;
    28         strcpy(altmode   ,"clampToGround");
     28        memcpy(altmode,"clampToGround",(strlen(altmode)+1)*sizeof(char));
     29
    2930        ncoord    =0;
    3031        coords    =NULL;
     
    195196/*  write header  */
    196197
    197         strcpy(nstr2,nstr);
     198        memcpy(nstr2,nstr,(strlen(nstr)+1)*sizeof(char));
     199
    198200        for (i=0; i<strlen(nstr2); i++)
    199201                if ((nstr2[i] == ' ') || (nstr2[i] == '\t'))
Note: See TracChangeset for help on using the changeset viewer.