Skip to content

Commit

Permalink
Don't use g_memmove().
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Borodin <[email protected]>
  • Loading branch information
aborodin committed Nov 25, 2013
1 parent bb65b46 commit 77717b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/viewer/coord_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

#include <config.h>

#include <string.h> /* for g_memmove() */
#include <string.h> /* memmove() */
#ifdef MC_ENABLE_DEBUGGING_CODE
#include <inttypes.h> /* uintmax_t */
#endif
Expand Down Expand Up @@ -93,8 +93,8 @@ mcview_ccache_add_entry (coord_cache_t * cache, size_t pos, const coord_cache_en

/* insert new entry */
if (pos != cache->size)
g_memmove (cache->cache[pos + 1], cache->cache[pos],
(cache->size - pos) * sizeof (coord_cache_entry_t *));
memmove (cache->cache[pos + 1], cache->cache[pos],
(cache->size - pos) * sizeof (coord_cache_entry_t *));
cache->cache[pos] = g_memdup (entry, sizeof (coord_cache_entry_t));
cache->size++;
}
Expand Down

0 comments on commit 77717b6

Please sign in to comment.