aboutsummaryrefslogtreecommitdiff
path: root/Examples/lua/exception/example.h
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/lua/exception/example.h')
-rw-r--r--Examples/lua/exception/example.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Examples/lua/exception/example.h b/Examples/lua/exception/example.h
index bc744cda7..c76c46a5d 100644
--- a/Examples/lua/exception/example.h
+++ b/Examples/lua/exception/example.h
@@ -10,7 +10,7 @@ class Exc {
public:
Exc(int c, const char *m) {
code = c;
- strncpy(msg,m,256);
+ strncpy(msg,m,255);
}
int code;
char msg[256];