summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-11-28 22:07:30 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-11-28 22:07:30 (GMT)
commit75cdad558472781162a83439f3e6edb61d4d40e6 (patch)
treed4c4d78f70a7e37860209ac8a2b9019d24b997cc /Modules/socketmodule.c
parent179c48c60e2476643863313ee0e0aa01bf338ad9 (diff)
downloadcpython-75cdad558472781162a83439f3e6edb61d4d40e6.zip
cpython-75cdad558472781162a83439f3e6edb61d4d40e6.tar.gz
cpython-75cdad558472781162a83439f3e6edb61d4d40e6.tar.bz2
More sprintf -> PyOS_snprintf.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index eccee4d..db91d8b 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -3089,7 +3089,8 @@ OS2init(void)
return 1; /* Indicate Success */
}
- sprintf(reason, "OS/2 TCP/IP Error# %d", sock_errno());
+ PyOS_snprintf(reason, sizeof(reason),
+ "OS/2 TCP/IP Error# %d", sock_errno());
PyErr_SetString(PyExc_ImportError, reason);
return 0; /* Indicate Failure */