summaryrefslogtreecommitdiff
path: root/src/Shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Shell.c')
-rw-r--r--src/Shell.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Shell.c b/src/Shell.c
index 07713cc..1e9f338 100644
--- a/src/Shell.c
+++ b/src/Shell.c
@@ -956,10 +956,9 @@ ClassPartInitialize(WidgetClass widget_class)
XtPointer *extP
= &((ShellWidgetClass) widget_class)->shell_class.extension;
ext = XtNew(ShellClassExtensionRec);
- (void) memmove((char *) ext,
- (char *) _FindClassExtension(widget_class->
- core_class.superclass),
- sizeof(ShellClassExtensionRec));
+ (void) memcpy(ext,
+ _FindClassExtension(widget_class->core_class.superclass),
+ sizeof(ShellClassExtensionRec));
ext->next_extension = *extP;
*extP = (XtPointer) ext;
}
@@ -1801,8 +1800,8 @@ GetGeometry(Widget W, Widget child)
WMShellPart *wm = &((WMShellWidget) w)->wm;
EvaluateSizeHints((WMShellWidget) w);
- (void) memmove((char *) &hints, (char *) &wm->size_hints,
- sizeof(struct _OldXSizeHints));
+ (void) memcpy(&hints, &wm->size_hints,
+ sizeof(struct _OldXSizeHints));
hints.win_gravity = wm->win_gravity;
if (wm->size_hints.flags & PBaseSize) {
width -= wm->base_width;