summaryrefslogtreecommitdiff
path: root/Lib/d/dexception.swg
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/d/dexception.swg')
-rw-r--r--Lib/d/dexception.swg2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/d/dexception.swg b/Lib/d/dexception.swg
index 1aadbaada..74e0422b1 100644
--- a/Lib/d/dexception.swg
+++ b/Lib/d/dexception.swg
@@ -15,7 +15,7 @@
unsigned long,
unsigned short
%{ char error_msg[256];
- sprintf(error_msg, "C++ $1_type exception thrown, value: %d", $1);
+ SWIG_snprintf(error_msg, sizeof(error_msg), "C++ $1_type exception thrown, value: %d", $1);
SWIG_DSetPendingException(SWIG_DException, error_msg);
return $null; %}