aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/strres.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/tinsel/strres.cpp')
-rw-r--r--engines/tinsel/strres.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/tinsel/strres.cpp b/engines/tinsel/strres.cpp
index 532bc9267f..50eeda4d00 100644
--- a/engines/tinsel/strres.cpp
+++ b/engines/tinsel/strres.cpp
@@ -288,13 +288,11 @@ int LoadStringResource(int id, int sub, char *pBuffer, int bufferMax) {
}
}
- if (len)
- {
+ if (len) {
// the string exists
// copy the string to the buffer
- if (len < bufferMax)
- {
+ if (len < bufferMax) {
memcpy(pBuffer, pText + 1, len);
// null terminate