mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-05 00:50:50 +02:00
Follow-up to review-master-upstream-20249999-oa-dcff2f64-6535a4e1.md: - strcpy_s: add an inline fallback implementation right after the declaration, guarded by #ifndef __STDC_LIB_EXT1__. glibc never defines that macro and does not provide the C11 Annex K interfaces, so the bare declaration was an unresolved symbol at link time; the fallback makes magicOA.o self-contained (strcpy_s becomes a defined symbol) while a real Annex K libc still wins. - magicInit.cpp / magicOA.cpp: use `char argvbuf[] = "tclsh"` for the mutable argv string instead of `char[32]` + snprintf.