projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
985a56c
)
Fix theoretical off-by-one (which should never happen)
author
Colin Leroy
<colin@colino.net>
Thu, 8 Oct 2015 16:39:33 +0000
(18:39 +0200)
committer
Colin Leroy
<colin@colino.net>
Thu, 8 Oct 2015 16:39:33 +0000
(18:39 +0200)
src/plugins/notification/notification_pixbuf.c
patch
|
blob
|
history
diff --git
a/src/plugins/notification/notification_pixbuf.c
b/src/plugins/notification/notification_pixbuf.c
index c14ce2454a693d426587042ca6dcf82179dc0964..22984febeb419e1419363229e5176e1a3a943f3c 100644
(file)
--- a/
src/plugins/notification/notification_pixbuf.c
+++ b/
src/plugins/notification/notification_pixbuf.c
@@
-16,6
+16,7
@@
*/
#include "notification_pixbuf.h"
+#include "common/utils.h"
/* The following files were created from the respective .png or
* xpm files with the command
@@
-81,6
+82,7
@@
GdkPixbuf* notification_pixbuf_get(NotificationPixbuf wanted)
break;
}
}
+ cm_return_val_if_fail(wanted < NOTIFICATION_PIXBUF_LAST, NULL);
return notification_pixbuf[wanted];
}