egraving fix

Fix a "format is not literal" warning.
This commit is contained in:
PatR
2023-03-05 14:49:45 -08:00
parent 32ca917d2c
commit f0e7f4d273
+3 -2
View File
@@ -1430,7 +1430,8 @@ add_quoted_engraving(coordxy x, coordxy y, char *buf)
if (ep) { if (ep) {
if (ep->eread) if (ep->eread)
Snprintf(temp_buf, sizeof temp_buf, " with remembered text: \"%s\"", Snprintf(temp_buf, sizeof temp_buf,
" with remembered text: \"%s\"",
ep->engr_txt[remembered_text]); ep->engr_txt[remembered_text]);
else else
Snprintf(temp_buf, sizeof temp_buf, " that you've never read"); Snprintf(temp_buf, sizeof temp_buf, " that you've never read");
@@ -1644,7 +1645,7 @@ do_look(int mode, coord *click_cc)
engbuf[0] = '\0'; engbuf[0] = '\0';
if (add_quoted_engraving(cc.x, cc.y, engbuf)) { if (add_quoted_engraving(cc.x, cc.y, engbuf)) {
Snprintf(eos(out_str), BUFSZ - strlen(out_str) - 1, Snprintf(eos(out_str), BUFSZ - strlen(out_str) - 1,
engbuf); "%s", engbuf);
} }
} }
/* use putmixed() because there may be an encoded glyph present */ /* use putmixed() because there may be an encoded glyph present */