MCPcopy Create free account
hub / github.com/NetHack/NetHack / sanitize_engravings

Function sanitize_engravings

src/engrave.c:1497–1505  ·  view source on GitHub ↗

while loading bones, clean up text which might accidentally or maliciously disrupt player's terminal when displayed */

Source from the content-addressed store, hash-verified

1495/* while loading bones, clean up text which might accidentally
1496 or maliciously disrupt player's terminal when displayed */
1497void
1498sanitize_engravings(void)
1499{
1500 struct engr *ep;
1501
1502 for (ep = head_engr; ep; ep = ep->nxt_engr) {
1503 sanitize_name(ep->engr_txt[actual_text]);
1504 }
1505}
1506
1507/* mark all engravings as not-discovered/not-read when saving bones */
1508void

Callers 1

getbonesFunction · 0.85

Calls 1

sanitize_nameFunction · 0.85

Tested by

no test coverage detected