commit 8abfbf082b29da447b05a6edba6af409e7e78040
parent f29d5119d2d7759df2d04475381c9acdafc90c49
Author: Kyle Milz <krwmilz@gmail.com>
Date: Mon, 13 Sep 2021 22:05:03 +0000
spell Strcpy correctly
Diffstat:
4 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/font-open.c b/font-open.c
@@ -1685,7 +1685,7 @@ font_open(fontp, font_ret, dpi_ret)
}
fn = xmalloc(strlen(fontp->fontname) + 2);
- Strcpy(fn, fontp->fontname);
+ strcpy(fn, fontp->fontname);
fnend = fn + strlen(fn);
while (fnend > fn && fnend[-1] >= '0' && fnend[-1] <= '9') --fnend;
actual_pt = low_pt = high_pt = atoi(fnend);
diff --git a/popups.c b/popups.c
@@ -1313,7 +1313,7 @@ print_do_it()
*p++ = ':';
*p = '\0';
if (envval != NULL)
- Strcpy(p, envval);
+ strcpy(p, envval);
xputenv(dep->envname, dep->envval);
}
}
diff --git a/special.c b/special.c
@@ -636,7 +636,7 @@ epsf_special(cp)
buflen = len;
buffer = xmalloc(buflen);
}
- Strcpy(buffer, "@beginspecial");
+ strcpy(buffer, "@beginspecial");
q = buffer + strlen(buffer);
while (*cp != '\0') {
char *p1 = cp;
@@ -666,7 +666,7 @@ epsf_special(cp)
}
*q++ = ' ';
*q++ = '@';
- Strcpy(q, keytab[keyno]);
+ strcpy(q, keytab[keyno]);
q += strlen(q);
break;
}
@@ -675,7 +675,7 @@ epsf_special(cp)
while (!isspace(*cp) && *cp != '\0') ++cp;
while (isspace(*cp)) ++cp;
}
- Strcpy(q, " @setspecial\n");
+ strcpy(q, " @setspecial\n");
bbox_valid = False;
if ((flags & 0x30) == 0x30 || ((flags & 0x30) && (flags & 0xf) == 0xf)){
diff --git a/xdvi.h b/xdvi.h
@@ -52,7 +52,6 @@ NOTE:
#define Fseek (void) fseek
#define Fread (void) fread
#define Fflush (void) fflush
-#define Strcpy (void) strcpy
/********************************
* Types and data *