Replaced deprecated g_memmove function calls.
authorDaniel Carl <danielcarl@gmx.de>
Wed, 30 Jul 2014 21:34:09 +0000 (23:34 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Wed, 30 Jul 2014 21:34:59 +0000 (23:34 +0200)
src/map.c
src/normal.c

index 93067bb..dbee241 100644 (file)
--- a/src/map.c
+++ b/src/map.c
@@ -203,7 +203,7 @@ MapState map_handle_keys(const guchar *keys, int keylen, gboolean use_map)
                 map.resolved -= 3;
                 map.qlen     -= 3;
                 /* move all other queue entries three steps to the left */
-                g_memmove(map.queue, map.queue + 3, map.qlen);
+                memmove(map.queue, map.queue + 3, map.qlen);
             } else {
                 /* get first char of queue */
                 qk = map.queue[0];
@@ -212,7 +212,7 @@ MapState map_handle_keys(const guchar *keys, int keylen, gboolean use_map)
                 map.qlen--;
 
                 /* move all other queue entries one step to the left */
-                g_memmove(map.queue, map.queue + 1, map.qlen);
+                memmove(map.queue, map.queue + 1, map.qlen);
             }
 
             /* remove the nomap flag */
index 540f58e..210e38b 100644 (file)
@@ -316,7 +316,7 @@ void normal_showcmd(int c)
         extra      = strlen(translated);
         overflow   = old + extra - SHOWCMD_LEN;
         if (overflow > 0) {
-            g_memmove(showcmd_buf, showcmd_buf + overflow, old - overflow + 1);
+            memmove(showcmd_buf, showcmd_buf + overflow, old - overflow + 1);
         }
         strcat(showcmd_buf, translated);
     } else {