DS: Replace strlcpy with Common::strlcpy

This commit is contained in:
Cameron Cawley 2019-05-01 16:43:26 +01:00
parent 68e700ea54
commit 3309c574c0

View File

@ -484,11 +484,11 @@ FILE *std_fopen(const char *name, const char *mode) {
// Remove file system prefix
if ((name[0] == 'd') && (name[1] == 's') && (name[2] == ':') && (name[3] == '/')) {
strlcpy(realName, name + 4, MAXPATHLEN);
Common::strlcpy(realName, name + 4, MAXPATHLEN);
} else if ((name[0] == 'm') && (name[1] == 'p') && (name[2] == ':') && (name[3] == '/')) {
strlcpy(realName, name + 4, MAXPATHLEN);
Common::strlcpy(realName, name + 4, MAXPATHLEN);
} else {
strlcpy(realName, name, MAXPATHLEN);
Common::strlcpy(realName, name, MAXPATHLEN);
}
// consolePrintf("Open file:");