GNOME Bugzilla – Bug 635761
[PATCH] Possible pointer truncation crash (and fix)
Last modified: 2010-12-06 11:53:44 UTC
Created attachment 175227 [details] [review] Fix implicit declaration of strchr(). daemon/control/gkd-control-server.c doesn't include string.h, which holds the prototype for strchr(). Since GCC can't find the prototype, it assumes the return type is (int), while it's actually (char *). The attached patch just adds the missing #include line.
Thanks. Committed your fix. commit d9a669d217de1dcece6fbef7ebb8e49125d51a4d Author: Jasper Lievisse Adriaanse <jasper@humppa.nl> Date: Mon Dec 6 11:52:18 2010 +0000 [daemon] Fix pointer truncation by including header. https://bugzilla.gnome.org/show_bug.cgi?id=635761