- up to R14B01; replace strcpy with memcpy because fortify source won't allow to...
[packages/erlang.git] / erlang-fortify.patch
1 --- otp_src_R14B01/erts/emulator/drivers/common/efile_drv.c~    2010-12-07 16:07:22.000000000 +0100
2 +++ otp_src_R14B01/erts/emulator/drivers/common/efile_drv.c     2011-01-10 12:05:42.950806366 +0100
3 @@ -174,7 +174,7 @@
4  
5  #else
6  #  define FILENAME_BYTELEN(Str) strlen(Str)
7 -#  define FILENAME_COPY(To,From) strcpy(To,From) 
8 +#  define FILENAME_COPY(To,From) memcpy(To,From,strlen(From)+1)
9  #  define FILENAME_CHARSIZE 1
10  #endif
11  
This page took 0.028294 seconds and 3 git commands to generate.