diff --git a/Examples/javascript/exception/example.h b/Examples/javascript/exception/example.h index bc744cda7..c76c46a5d 100644 --- a/Examples/javascript/exception/example.h +++ b/Examples/javascript/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]; 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]; diff --git a/Examples/python/exception/example.h b/Examples/python/exception/example.h index bc744cda7..c76c46a5d 100644 --- a/Examples/python/exception/example.h +++ b/Examples/python/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];