This website works better with JavaScript.
Home
Explore
Help
Sign In
tovi
/
st
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Remove stupid assignation in memcpy()
master
Roberto E. Vargas Caballero
9 years ago
parent
39964614b7
commit
66556d9670
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
st.c
+ 2
- 2
st.c
View File
@ -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
)
Write
Preview
Loading…
Cancel
Save