pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3996461
)
Remove stupid assignation in memcpy()
author
Roberto E. Vargas Caballero
<roberto.vargas@igrid-td.com>
Fri, 15 Apr 2016 05:58:26 +0000
(07:58 +0200)
committer
Roberto E. Vargas Caballero
<roberto.vargas@igrid-td.com>
Fri, 15 Apr 2016 05:58:26 +0000
(07:58 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
839136d
..
27536d2
100644
(file)
--- 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)