diff options
Diffstat (limited to 'Lib/octave/octcontainer.swg')
-rw-r--r-- | Lib/octave/octcontainer.swg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/octave/octcontainer.swg b/Lib/octave/octcontainer.swg index 394c90bac..5031e703f 100644 --- a/Lib/octave/octcontainer.swg +++ b/Lib/octave/octcontainer.swg @@ -198,7 +198,7 @@ namespace swig return swig::as<T>(item); } catch (const std::exception& e) { char msg[1024]; - sprintf(msg, "in sequence element %d ", _index); + SWIG_snprintf(msg, sizeof(msg), "in sequence element %d ", _index); if (!Octave_Error_Occurred()) { %type_error(swig::type_name<T>()); } |