+2013-08-14 Dmitry Antipov <dmantipov@yandex.ru>
+
+ Fix --enable-gcc-warnings errors introduced in 2013-08-13 commit.
+ * image.c (imagemagick_filename_hint): Use `const char *' and
+ prefer SSDATA to SDATA to avoid warnings.
+
2013-08-14 Dmitry Antipov <dmantipov@yandex.ru>
Cleanup window fringes, margins and scroll bars adjustments.
imagemagick_filename_hint (Lisp_Object spec)
{
Lisp_Object format = image_spec_value (spec, intern (":format"), NULL);
- Lisp_Object symbol = intern ("image-format-suffixes");
- Lisp_Object val;
- char *name, *prefix = "/tmp/foo.";
+ Lisp_Object val, symbol = intern ("image-format-suffixes");
+ const char *prefix = "/tmp/foo.";
+ char *name;
if (NILP (Fboundp (symbol)))
return NULL;
return NULL;
name = xmalloc (strlen (prefix) + SBYTES (val) + 1);
- strcpy(name, prefix);
- strcat(name, SDATA (val));
+ strcpy (name, prefix);
+ strcat (name, SSDATA (val));
return name;
}