Patch by Paul Waring. svn path=/trunk/netsurf/; revision=13880
svn path=/trunk/netsurf/; revision=13570