diff options
| author | jacob1 <jfu614@gmail.com> | 2013-03-04 19:57:40 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-03-04 19:57:40 (GMT) |
| commit | 0f5b4a9ec83b8c6d2bb9448b6e58f841a875a636 (patch) | |
| tree | 37c55cf9d20fc543fe3bbb678f60f460f01bccf9 /src/simulation/Sign.cpp | |
| parent | 6bea8f5235006eb46a045c4ce5d91ddead88f02c (diff) | |
| download | powder-0f5b4a9ec83b8c6d2bb9448b6e58f841a875a636.zip powder-0f5b4a9ec83b8c6d2bb9448b6e58f841a875a636.tar.gz | |
fix pressing esc in login prompt logging you out, fix possible sign bug crash
Diffstat (limited to 'src/simulation/Sign.cpp')
| -rw-r--r-- | src/simulation/Sign.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/Sign.cpp b/src/simulation/Sign.cpp index 19261e4..82d9a18 100644 --- a/src/simulation/Sign.cpp +++ b/src/simulation/Sign.cpp @@ -22,7 +22,7 @@ std::string sign::getText(Simulation *sim) { char buff[256]; char signText[256]; - sprintf(signText, "%s", text.c_str()); + sprintf(signText, "%s", text.substr(0, 255).c_str()); if (!strcmp(signText,"{p}")) { |
