aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero <roberto.vargas@igrid-td.com>2016-04-15 07:58:26 +0200
committerRoberto E. Vargas Caballero <roberto.vargas@igrid-td.com>2016-04-15 07:58:26 +0200
commit66556d967028a0b770e9bfcb9667389a6e994a58 (patch)
tree55487ee919cf05b6ad345d48d3354e9daf6b3875 /st.c
parent39964614b742c4ec98a326762d98470cb987a45b (diff)
downloadst-66556d967028a0b770e9bfcb9667389a6e994a58.tar.gz
Remove stupid assignation in memcpy()
Diffstat (limited to 'st.c')
-rw-r--r--st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/st.c b/st.c
index 839136d..27536d2 100644
--- a/st.c
+++ b/st.c
@@ -1404,9 +1404,9 @@ stty(void)
if ((n = strlen(s)) > siz-1)
die("stty parameter length too long\n");
*q++ = ' ';
- q = memcpy(q, s, n);
+ memcpy(q, s, n);
q += n;
- siz-= n + 1;
+ siz -= n + 1;
}
*q = '\0';
if (system(cmd) != 0)
remember that computers suck.