xworld, pdbox: Fix issues with using strncpy
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Fri, 15 May 2026 10:38:03 -0400
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit f774de61b6265f895a311f632ae4691c666cd5b4 Author: Solomon Peachy <[email protected]> Date: Fri May 15 10:34:44 2026 -0400 xworld, pdbox: Fix issues with using strncpy Change-Id: Iaed18b7c856b7febef443d1e3e5f6b527b32ecae diff --git a/apps/plugins/pdbox/pdbox.h b/apps/plugins/pdbox/pdbox.h index 36fb6c4fa8..5d73414349 100644 --- a/apps/plugins/pdbox/pdbox.h +++ b/apps/plugins/pdbox/pdbox.h @@ -160,6 +160,9 @@ void pd_init(void); #undef strncat #define strncat rb_strncat +#undef strncpy +#define strncpy rb->strncpy + //#ifndef SIMULATOR /*FIXME: is it a correct replacement??? */ /* #if !(CONFIG_PLATFORM & PLATFORM_HOSTED) */ diff --git a/apps/plugins/xworld/engine.c b/apps/plugins/xworld/engine.c index 0aa5f72118..c49ed4e87a 100644 --- a/apps/plugins/xworld/engine.c +++ b/apps/plugins/xworld/engine.c @@ -306,6 +306,8 @@ void engine_processInput(struct Engine* e) { } } +#undef strncpy + void engine_makeGameStateName(struct Engine* e, uint8_t slot, char *buf, int sz) { (void) e; rb->snprintf(buf, sz, "xworld_save.s%02d", slot); -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs