magic/oa
Darryl L. Miles c6896e2a74 oa: apply code-review feedback — strcpy_s link fallback + argv cleanup
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.
2026-07-09 10:41:12 -04:00
..
fake_oa_stub/oa/include oa/fake_oa_stub (header file oaDB.h) 2026-07-09 10:41:12 -04:00
Makefile oa: make it build (against stub) 2026-07-09 10:41:12 -04:00
magicInit.cpp oa: apply code-review feedback — strcpy_s link fallback + argv cleanup 2026-07-09 10:41:12 -04:00
magicInit.h header file #endif guard trailer comment consistency 2025-07-29 10:50:32 -04:00
magicOA.cpp oa: apply code-review feedback — strcpy_s link fallback + argv cleanup 2026-07-09 10:41:12 -04:00
magicOA.h oa: replace strcpy() with strcpy_s() 2026-07-09 10:41:12 -04:00
oa.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
oa.h header file #ifndef guard namespace consistency (global change) 2025-07-29 10:50:32 -04:00