diff options
Diffstat (limited to 'core/fxcrt/fx_basic_gcc.cpp')
-rw-r--r-- | core/fxcrt/fx_basic_gcc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/fx_basic_gcc.cpp b/core/fxcrt/fx_basic_gcc.cpp index e041065b32..98a6ead64b 100644 --- a/core/fxcrt/fx_basic_gcc.cpp +++ b/core/fxcrt/fx_basic_gcc.cpp @@ -119,7 +119,7 @@ uint32_t FXSYS_GetFullPathName(const char* filename, if (!buf || (int)buflen < srclen + 1) return srclen + 1; - FXSYS_strcpy(buf, filename); + strncpy(buf, filename, buflen); return srclen; } |