From 555458c31ff9d6bb6232513dd5229b94e9158b90 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Wed, 30 Jul 2014 23:34:09 +0200 Subject: [PATCH] Replaced deprecated g_memmove function calls. --- src/map.c | 4 ++-- src/normal.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map.c b/src/map.c index 93067bb..dbee241 100644 --- 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 */ diff --git a/src/normal.c b/src/normal.c index 540f58e..210e38b 100644 --- a/src/normal.c +++ b/src/normal.c @@ -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 { -- 2.20.1