]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix pointer signedness glitch
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Jun 2015 16:06:21 +0000 (09:06 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Jun 2015 16:07:35 +0000 (09:07 -0700)
* src/font.c (font_load_for_lface): Use SSDATA, not SDATA.

src/font.c

index 575975ced739d5dd5b877143869b6091872d8820..50b966ec83ee5d692bd1dd5f0b3cb9c1eedb3278 100644 (file)
@@ -3346,7 +3346,7 @@ font_load_for_lface (struct frame *f, Lisp_Object *attrs, Lisp_Object spec)
          name = Ffont_get (spec, QCuser_spec);
          if (STRINGP (name))
            {
-             char *p = SDATA (name), *q = strrchr (p, '-');
+             char *p = SSDATA (name), *q = strrchr (p, '-');
 
              if (q != NULL && c_isdigit (q[1]))
                {