1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/cad/spice/files/patch-src_lib_fte_dotcards.c
Hiroki Sato 82ddc2e107 Unbreak the build:
- Update MASTER_SITES.
- Add missing dependency.
- Regenerate patches.
2020-02-22 20:44:35 +00:00

32 lines
698 B
C

--- src/lib/fte/dotcards.c.orig 1993-07-30 04:44:28 UTC
+++ src/lib/fte/dotcards.c
@@ -405,11 +405,17 @@ fixem(string)
char *string;
{
char buf[BSIZE_SP], *s, *t, *ss = string;
+ char *e;
+ e = string + strlen(string);
if (ciprefix("v(", string) && index(string, ',')) {
for (s = string; *s && (*s != ','); s++)
;
*s++ = '\0';
+ while (s + 1 < e && isspace(*(s + 1))) {
+ *(s + 1) = '\0';
+ s++;
+ }
for (t = s; *t && (*t != ')'); t++)
;
*t = '\0';
@@ -589,6 +595,10 @@ gettoks(s)
if (c)
*c = 0;
+ while (c + 1 < r && isspace(*(c + 1))) {
+ c++;
+ *c = '\0';
+ }
wl = alloc(struct wordlist);