[hackers] [st] Remove stupid assignation in memcpy() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 15 Apr 2016 08:09:23 +0200 (CEST)

commit 66556d967028a0b770e9bfcb9667389a6e994a58
Author: Roberto E. Vargas Caballero <roberto.vargas_AT_igrid-td.com>
AuthorDate: Fri Apr 15 07:58:26 2016 +0200
Commit: Roberto E. Vargas Caballero <roberto.vargas_AT_igrid-td.com>
CommitDate: Fri Apr 15 07:58:26 2016 +0200

    Remove stupid assignation in memcpy()

diff --git a/st.c b/st.c
index 839136d..27536d2 100644
--- a/st.c
+++ b/st.c
_AT_@ -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)
Received on Fri Apr 15 2016 - 08:09:23 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 15 2016 - 08:12:18 CEST