summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Pfister <christophpfister@gmail.com>2009-04-27 22:32:57 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-04-27 22:35:29 -0700
commit2bef065b70f70af520b5de8fb23529254d15f003 (patch)
treeee7be4304db7953814e59dbb8e8d09526205a700
parent5c1cde105db10df24d3c532f032cbc59050c7313 (diff)
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>
-rw-r--r--modules/om/generic/omGeneric.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/om/generic/omGeneric.c b/modules/om/generic/omGeneric.c
index 7d1cf30..4fdc11b 100644
--- a/modules/om/generic/omGeneric.c
+++ b/modules/om/generic/omGeneric.c
@@ -571,6 +571,8 @@ get_rotate_fontname(
if((ptr = strchr(ptr, '-'))) {
*ptr = '\0';
+ } else {
+ break;
}
}