From 42a5b22fc0201fe98ad8a093c3ab91122ab3a72b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 30 Jan 2011 14:17:44 -0800 Subject: Use SSDATA when the context wants char *. * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c: * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c: * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c: * lread.c, minibuf.c, print.c, process.c, search.c, widget.c: * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c: Use SSDATA (not SDATA) when the context of the expression wants char * (not unsigned char *). --- src/alloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/alloc.c') diff --git a/src/alloc.c b/src/alloc.c index d5c9f307cbc..67d34d25642 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -4756,7 +4756,7 @@ Does not copy symbols. Copies strings without text properties. */) else if (FLOATP (obj)) obj = make_pure_float (XFLOAT_DATA (obj)); else if (STRINGP (obj)) - obj = make_pure_string (SDATA (obj), SCHARS (obj), + obj = make_pure_string (SSDATA (obj), SCHARS (obj), SBYTES (obj), STRING_MULTIBYTE (obj)); else if (COMPILEDP (obj) || VECTORP (obj)) @@ -6276,4 +6276,3 @@ The time is in seconds as a floating point value. */); defsubr (&Sgc_status); #endif } - -- cgit v1.2.1