diff options
| author | Roberto E. Vargas Caballero <roberto.vargas@igrid-td.com> | 2016-04-15 07:58:26 +0200 |
|---|---|---|
| committer | Roberto E. Vargas Caballero <roberto.vargas@igrid-td.com> | 2016-04-15 07:58:26 +0200 |
| commit | 66556d967028a0b770e9bfcb9667389a6e994a58 (patch) | |
| tree | 55487ee919cf05b6ad345d48d3354e9daf6b3875 /st.c | |
| parent | 39964614b742c4ec98a326762d98470cb987a45b (diff) | |
| download | st-66556d967028a0b770e9bfcb9667389a6e994a58.tar.gz st-66556d967028a0b770e9bfcb9667389a6e994a58.zip | |
Remove stupid assignation in memcpy()
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1404,9 +1404,9 @@ stty(void) | |||
| 1404 | if ((n = strlen(s)) > siz-1) | 1404 | if ((n = strlen(s)) > siz-1) |
| 1405 | die("stty parameter length too long\n"); | 1405 | die("stty parameter length too long\n"); |
| 1406 | *q++ = ' '; | 1406 | *q++ = ' '; |
| 1407 | q = memcpy(q, s, n); | 1407 | memcpy(q, s, n); |
| 1408 | q += n; | 1408 | q += n; |
| 1409 | siz-= n + 1; | 1409 | siz -= n + 1; |
| 1410 | } | 1410 | } |
| 1411 | *q = '\0'; | 1411 | *q = '\0'; |
| 1412 | if (system(cmd) != 0) | 1412 | if (system(cmd) != 0) |
