nupa_copy(), cleanup
This commit is contained in:
parent
ec24c1ded7
commit
9218b76583
|
|
@ -702,10 +702,10 @@ nupa_copy(struct card *deck)
|
||||||
spice_dstring_init(&u);
|
spice_dstring_init(&u);
|
||||||
s_end = s + (int) strlen(s);
|
s_end = s + (int) strlen(s);
|
||||||
|
|
||||||
while ((s_end - s > 0) && (s[s_end - s - 1] <= ' '))
|
while (s_end > s && s_end[-1] <= ' ')
|
||||||
s_end--;
|
s_end--;
|
||||||
|
|
||||||
pscopy(&u, s, s + (s_end - s)); /* strip trailing space, CrLf and so on */
|
pscopy(&u, s, s_end); /* strip trailing space, CrLf and so on */
|
||||||
dicoS->srcline = linenum;
|
dicoS->srcline = linenum;
|
||||||
|
|
||||||
if ((!inexpansionS) && (linenum >= 0) && (linenum <= dynmaxline)) {
|
if ((!inexpansionS) && (linenum >= 0) && (linenum <= dynmaxline)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue