summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.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/posixmodule.c
parent179c48c60e2476643863313ee0e0aa01bf338ad9 (diff)
downloadcpython-75cdad558472781162a83439f3e6edb61d4d40e6.zip
cpython-75cdad558472781162a83439f3e6edb61d4d40e6.tar.gz
cpython-75cdad558472781162a83439f3e6edb61d4d40e6.tar.bz2
More sprintf -> PyOS_snprintf.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 3340131..37c0f86 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -2555,7 +2555,7 @@ _PyPopenCreateProcess(char *cmdstring,
x = i + strlen(s3) + strlen(cmdstring) + 1;
s2 = (char *)_alloca(x);
ZeroMemory(s2, x);
- sprintf(s2, "%s%s%s", s1, s3, cmdstring);
+ PyOS_snprintf(s2, x, "%s%s%s", s1, s3, cmdstring);
}
else {
/*
@@ -2608,8 +2608,8 @@ _PyPopenCreateProcess(char *cmdstring,
s2 = (char *)_alloca(x);
ZeroMemory(s2, x);
- sprintf(
- s2,
+ PyOS_snprintf(
+ s2, x,
"%s \"%s%s%s\"",
modulepath,
s1,