GNOME Bugzilla – Bug 132814
libxklavier-0.95 use strndup() ....
Last modified: 2005-08-15 01:49:30 UTC
GConf use libxklavier-0.95. In the xklavier_config.c file, on line 340 and 346, strndup() is used. Bad idea. strndup doesn't exist on Solaris. Use memcpy() instead, when malloc() have created sufficient memory. Or something _like_: #ifdef __sun__ char *strndup(char *s1, char *s2, int len) { char *tmp = malloc(len*sizeof(char)); tmp = memcpy(s1, s2, len); return tmp; } #endif in the beginning of the file.
Adding the portability keyword and marking priority as high.
GConf doesn't use libxklavier. Can't find a bugzilla home for libxklavier, so moving to control-center which does use it.
0.95 is an old version. This problem was fixed in the latest version already.