projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Major rewrite of scripting support:
[supertux.git]
/
src
/
video
/
font.cpp
diff --git
a/src/video/font.cpp
b/src/video/font.cpp
index
7394441
..
f007dab
100644
(file)
--- a/
src/video/font.cpp
+++ b/
src/video/font.cpp
@@
-114,6
+114,9
@@
Font::draw(const std::string& text, const Vector& pos_, FontAlignment alignment,
l = text.size();
done = true;
}
+
+ if(l > sizeof(temp)-1)
+ l = sizeof(temp)-1;
temp[text.copy(temp, l - i, i)] = '\0';