wdvi

network DVI viewer
Log | Files | Refs

commit df202db5a8b324a2f962102891717d6199b1044b
parent 2898462ee424491dd3afd8f1602e145eab873964
Author: Kyle Milz <krwmilz@gmail.com>
Date:   Mon, 13 Sep 2021 22:08:27 +0000

spell Sprintf correctly

Diffstat:
Mfont-open.c | 6+++---
Mspecial.c | 2+-
Mxdvi.h | 1-
3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/font-open.c b/font-open.c @@ -1424,7 +1424,7 @@ init_font_open() FILE *f; const char *dvipsrc; - Sprintf(bdpi_string, "%d", pixels_per_inch); + sprintf(bdpi_string, "%d", pixels_per_inch); if ((search_pkgf.path1 = getenv("XDVIFONTS")) == NULL #ifndef XDVIFONTS_ONLY @@ -1564,7 +1564,7 @@ try_size(font, dpi, ret_path) int dpi; const char **ret_path; { - Sprintf(dpi_string, "%d", dpi); + sprintf(dpi_string, "%d", dpi); return filefind(font, &search_pkgf, ret_path); } @@ -1699,7 +1699,7 @@ font_open(fontp, font_ret, dpi_ret) trial_pt = low_pt--; else if (high_pt > actual_pt + 5) break; else trial_pt = high_pt++; - Sprintf(fnend, "%d", trial_pt); + sprintf(fnend, "%d", trial_pt); if (pre_font_open(fontp, fn, fontp->fsize * actual_pt / trial_pt, &fontp->filename, dpi_ret)) { diff --git a/special.c b/special.c @@ -1209,7 +1209,7 @@ myatopix(pp) if (*cp >= 'a' && *cp <= 'z' && cp[1] >= 'a' && cp[1] <= 'z') { /* if units are present */ if (p1 - p0 <= XtNumber(scr) - 3) { - Sprintf(scr, "%.*s%c%c", (int) (p1 - p0), p0, *cp, cp[1]); + sprintf(scr, "%.*s%c%c", (int) (p1 - p0), p0, *cp, cp[1]); value = atopix(scr, False); } else value = 0; diff --git a/xdvi.h b/xdvi.h @@ -48,7 +48,6 @@ NOTE: #endif #define Printf (void) printf -#define Sprintf (void) sprintf #define Fseek (void) fseek /********************************