diff options
author | Christoph Pfister <christophpfister@gmail.com> | 2009-04-27 22:32:57 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-04-27 22:35:29 -0700 |
commit | 2bef065b70f70af520b5de8fb23529254d15f003 (patch) | |
tree | ee7be4304db7953814e59dbb8e8d09526205a700 | |
parent | 5c1cde105db10df24d3c532f032cbc59050c7313 (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.c | 2 |
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; } } |