Limit length of name passed to sprintf.
diff --git a/Python/ceval.c b/Python/ceval.c
index fc21706..653b1cd 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1934,7 +1934,7 @@
 		x = dict2lookup(w, name);
 		if (x == NULL) {
 			char buf[250];
-			sprintf(buf, "cannot import name %s",
+			sprintf(buf, "cannot import name %.230s",
 				getstringvalue(name));
 			err_setstr(ImportError, buf);
 			return -1;