projects
/
claws.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
better fix for debian bug #983778
[claws.git]
/
src
/
gtk
/
gtkutils.c
diff --git
a/src/gtk/gtkutils.c
b/src/gtk/gtkutils.c
index 7ffcbb371b3f7165d94338f8c3f13407e4fd7636..272a5c3c4917489c245f857ef183d01fa2b38fae 100644
(file)
--- a/
src/gtk/gtkutils.c
+++ b/
src/gtk/gtkutils.c
@@
-1090,7
+1090,8
@@
GtkWidget *xface_get_from_header(const gchar *o_xface)
static gboolean xpm_xface_init = TRUE;
gchar xface[2048];
- cm_return_if_fail(sizeof(xface) < 0);
+ if (o_xface == NULL)
+ return NULL;
strncpy(xface, o_xface, sizeof(xface) - 1);
xface[sizeof(xface) - 1] = '\0';