X.Org Bug #21117: crash in get_rotate_fontname (omGeneric.c)

http://bugs.freedesktop.org/show_bug.cgi?id=21117

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
This commit is contained in:
Christoph Pfister 2009-04-27 22:32:57 -07:00 committed by Alan Coopersmith
parent 5c1cde105d
commit 2bef065b70

View file

@ -571,6 +571,8 @@ get_rotate_fontname(
if((ptr = strchr(ptr, '-'))) { if((ptr = strchr(ptr, '-'))) {
*ptr = '\0'; *ptr = '\0';
} else {
break;
} }
} }