diff options
| author | Stefan Monnier | 2002-10-22 19:35:20 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-10-22 19:35:20 +0000 |
| commit | 1b49bf99d3eb594282f0862eb4a0e8c45e64a9b5 (patch) | |
| tree | 292d02d02e25dd8f878e3cfe31eaea28fc90d0f5 /src | |
| parent | a5731348b5ad4bec5b33104208dbb9372130c3f2 (diff) | |
| download | emacs-1b49bf99d3eb594282f0862eb4a0e8c45e64a9b5.tar.gz emacs-1b49bf99d3eb594282f0862eb4a0e8c45e64a9b5.zip | |
(x_set_name, x_set_title): `icon.value' has unsigned char.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xfns.c b/src/xfns.c index c20c0d0480d..52902208735 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -2471,9 +2471,9 @@ x_set_name (f, name, explicit) | |||
| 2471 | XSetWMIconName (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), &icon); | 2471 | XSetWMIconName (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), &icon); |
| 2472 | #endif /* not USE_X_TOOLKIT */ | 2472 | #endif /* not USE_X_TOOLKIT */ |
| 2473 | if (!NILP (f->icon_name) | 2473 | if (!NILP (f->icon_name) |
| 2474 | && icon.value != SDATA (f->icon_name)) | 2474 | && icon.value != (unsigned char *) SDATA (f->icon_name)) |
| 2475 | xfree (icon.value); | 2475 | xfree (icon.value); |
| 2476 | if (text.value != SDATA (name)) | 2476 | if (text.value != (unsigned char *) SDATA (name)) |
| 2477 | xfree (text.value); | 2477 | xfree (text.value); |
| 2478 | } | 2478 | } |
| 2479 | #else /* not HAVE_X11R4 */ | 2479 | #else /* not HAVE_X11R4 */ |
| @@ -2578,9 +2578,9 @@ x_set_title (f, name, old_name) | |||
| 2578 | XSetWMIconName (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), &icon); | 2578 | XSetWMIconName (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), &icon); |
| 2579 | #endif /* not USE_X_TOOLKIT */ | 2579 | #endif /* not USE_X_TOOLKIT */ |
| 2580 | if (!NILP (f->icon_name) | 2580 | if (!NILP (f->icon_name) |
| 2581 | && icon.value != SDATA (f->icon_name)) | 2581 | && icon.value != (unsigned char *) SDATA (f->icon_name)) |
| 2582 | xfree (icon.value); | 2582 | xfree (icon.value); |
| 2583 | if (text.value != SDATA (name)) | 2583 | if (text.value != (unsigned char *) SDATA (name)) |
| 2584 | xfree (text.value); | 2584 | xfree (text.value); |
| 2585 | } | 2585 | } |
| 2586 | #else /* not HAVE_X11R4 */ | 2586 | #else /* not HAVE_X11R4 */ |