mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-20 17:03:05 +00:00
DS: Replace strlcpy with Common::strlcpy
This commit is contained in:
parent
68e700ea54
commit
3309c574c0
@ -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:");
|
||||
|
Loading…
x
Reference in New Issue
Block a user