diff Python/importdl.c @ 7121:c8745d205122 legacy-trunk

Protect PyErr_Format format string argument from overflow.
author Guido van Rossum <guido@python.org>
date Mon, 19 Jan 1998 22:23:08 +0000
parents fa09372f7872
children 0263d3324f0b
line wrap: on
line diff
--- a/Python/importdl.c	Mon Jan 19 22:22:44 1998 +0000
+++ b/Python/importdl.c	Mon Jan 19 22:23:08 1998 +0000
@@ -577,7 +577,7 @@
 #endif
 	if (p == NULL) {
 		PyErr_Format(PyExc_ImportError,
-		   "dynamic module does not define init function (%s)",
+		   "dynamic module does not define init function (%.200s)",
 			     funcname);
 		return NULL;
 	}