Remove stupid assignation in memcpy()
parent
39964614b7
commit
66556d9670
4
st.c
4
st.c
|
@ -1404,9 +1404,9 @@ stty(void)
|
||||||
if ((n = strlen(s)) > siz-1)
|
if ((n = strlen(s)) > siz-1)
|
||||||
die("stty parameter length too long\n");
|
die("stty parameter length too long\n");
|
||||||
*q++ = ' ';
|
*q++ = ' ';
|
||||||
q = memcpy(q, s, n);
|
memcpy(q, s, n);
|
||||||
q += n;
|
q += n;
|
||||||
siz-= n + 1;
|
siz -= n + 1;
|
||||||
}
|
}
|
||||||
*q = '\0';
|
*q = '\0';
|
||||||
if (system(cmd) != 0)
|
if (system(cmd) != 0)
|
||||||
|
|
Loading…
Reference in New Issue