summaryrefslogtreecommitdiffstats
path: root/src/sp-cursor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-cursor.cpp')
-rw-r--r--src/sp-cursor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sp-cursor.cpp b/src/sp-cursor.cpp
index 7ccdaadbe..2069bddbd 100644
--- a/src/sp-cursor.cpp
+++ b/src/sp-cursor.cpp
@@ -145,7 +145,8 @@ GdkPixbuf *sp_cursor_pixbuf_from_xpm(gchar const *const *xpm, GdkColor const& bl
for (int i = 0; i < colors; i++) {
char const *p = xpm[1 + i];
- char const ccode = *p;
+ g_assert(*p >=0);
+ guchar const ccode = (guchar) *p;
p++;
while (isspace(*p)) {