xbmc/xbmc — pull request #817 by jmarshallnz (2012-03-27 00:37:45+00:00)
Title: incorrect usage of readlink(), strrchr() et. al. (read/write unallocated mem)

See here for further analysis:

http://forum.xbmc.org/showthread.php?tid=126742

Am not sure exactly what the intent of the original dev was (cbxbiker6 in #10635).