diff options
Diffstat (limited to 'src/libmach/FreeBSD.c')
-rw-r--r-- | src/libmach/FreeBSD.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmach/FreeBSD.c b/src/libmach/FreeBSD.c index 7cf5c1f4..80c8935a 100644 --- a/src/libmach/FreeBSD.c +++ b/src/libmach/FreeBSD.c @@ -43,7 +43,7 @@ unmapproc(Map *map) for(i=0; i<map->nseg; i++) while(i<map->nseg && map->seg[i].pid){ map->nseg--; - memmove(&map->seg[i], &map->seg[i+1], + memmove(&map->seg[i], &map->seg[i+1], (map->nseg-i)*sizeof(map->seg[0])); } } |