diff Python/compile.c @ 21066:225c7dd17e37 legacy-trunk

Fixes for possible buffer overflows in sprintf() usages.
author Marc-André Lemburg <mal@egenix.com>
date Wed, 28 Nov 2001 11:47:00 +0000
parents c555f1e7c4be
children ea5b0f0b716f
line wrap: on
line diff
--- a/Python/compile.c	Wed Nov 28 07:50:45 2001 +0000
+++ b/Python/compile.c	Wed Nov 28 11:47:00 2001 +0000
@@ -4195,7 +4195,7 @@
 			return GLOBAL_IMPLICIT;
 		}
 	}
-	sprintf(buf, 
+	PyOS_snprintf(buf, sizeof(buf),
 		"unknown scope for %.100s in %.100s(%s) "
 		"in %s\nsymbols: %s\nlocals: %s\nglobals: %s\n",
 		name, c->c_name,