From: Paul Eggert Date: Thu, 10 Mar 2011 01:03:29 +0000 (-0800) Subject: * xfns.c (Fx_file_dialog, Fx_select_font): Fix pointer signedness. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~605^2^2~17 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c0951e534c34cb4400bf9dcb18ae40b31a684bae;p=emacs.git * xfns.c (Fx_file_dialog, Fx_select_font): Fix pointer signedness. --- diff --git a/src/ChangeLog b/src/ChangeLog index 4d9bd6234fa..3a870511bba 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -2,6 +2,7 @@ * xfns.c (x_decode_color, x_set_name, x_window): Now static. (Fx_create_frame): Add braces to silence GCC warning. + (Fx_file_dialog, Fx_select_font): Fix pointer signedness. 2011-03-09 Paul Eggert diff --git a/src/xfns.c b/src/xfns.c index 8ba91f9ffb8..45e0e13dcbc 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -5566,11 +5566,11 @@ Otherwise, if ONLY-DIR-P is non-nil, the user can only select directories. */) BLOCK_INPUT; if (STRINGP (default_filename)) - cdef_file = SDATA (default_filename); + cdef_file = SSDATA (default_filename); else - cdef_file = SDATA (dir); + cdef_file = SSDATA (dir); - fn = xg_get_file_name (f, SDATA (prompt), cdef_file, + fn = xg_get_file_name (f, SSDATA (prompt), cdef_file, ! NILP (mustmatch), ! NILP (only_dir_p)); @@ -5626,12 +5626,12 @@ If FRAME is omitted or nil, it defaults to the selected frame. */) XSETFONT (font, FRAME_FONT (f)); font_param = Ffont_get (font, intern (":name")); if (STRINGP (font_param)) - default_name = xstrdup (SDATA (font_param)); + default_name = xstrdup (SSDATA (font_param)); else { font_param = Fframe_parameter (frame, Qfont_param); if (STRINGP (font_param)) - default_name = xstrdup (SDATA (font_param)); + default_name = xstrdup (SSDATA (font_param)); } if (default_name == NULL && x_last_font_name != NULL)