diff options
Diffstat (limited to 'src/widget.c')
| -rw-r--r-- | src/widget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget.c b/src/widget.c index 0cb1013b971..e219c200e00 100644 --- a/src/widget.c +++ b/src/widget.c | |||
| @@ -435,7 +435,7 @@ set_frame_size (EmacsFrame ew) | |||
| 435 | flags & XNegative ? '-' : '+', x < 0 ? -x : x, | 435 | flags & XNegative ? '-' : '+', x < 0 ? -x : x, |
| 436 | flags & YNegative ? '-' : '+', y < 0 ? -y : y); | 436 | flags & YNegative ? '-' : '+', y < 0 ? -y : y); |
| 437 | len = strlen (shell_position) + 1; | 437 | len = strlen (shell_position) + 1; |
| 438 | tem = (char *) xmalloc (len); | 438 | tem = xmalloc (len); |
| 439 | strncpy (tem, shell_position, len); | 439 | strncpy (tem, shell_position, len); |
| 440 | XtVaSetValues (wmshell, XtNgeometry, tem, NULL); | 440 | XtVaSetValues (wmshell, XtNgeometry, tem, NULL); |
| 441 | } | 441 | } |
| @@ -445,7 +445,7 @@ set_frame_size (EmacsFrame ew) | |||
| 445 | char *tem; | 445 | char *tem; |
| 446 | sprintf (shell_position, "=%dx%d", pixel_width, pixel_height); | 446 | sprintf (shell_position, "=%dx%d", pixel_width, pixel_height); |
| 447 | len = strlen (shell_position) + 1; | 447 | len = strlen (shell_position) + 1; |
| 448 | tem = (char *) xmalloc (len); | 448 | tem = xmalloc (len); |
| 449 | strncpy (tem, shell_position, len); | 449 | strncpy (tem, shell_position, len); |
| 450 | XtVaSetValues (wmshell, XtNgeometry, tem, NULL); | 450 | XtVaSetValues (wmshell, XtNgeometry, tem, NULL); |
| 451 | } | 451 | } |