summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/macfsmodule.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-12-05 23:27:58 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-12-05 23:27:58 (GMT)
commit101de912d3613132b2eb80c802551006b3a11624 (patch)
treeecbe457e13e8567ff336644a658bc5cff73e5bcc /Mac/Modules/macfsmodule.c
parent8a97f4a380a7a356730e48406f8269c3efe5e6eb (diff)
downloadcpython-101de912d3613132b2eb80c802551006b3a11624.zip
cpython-101de912d3613132b2eb80c802551006b3a11624.tar.gz
cpython-101de912d3613132b2eb80c802551006b3a11624.tar.bz2
Replace sprintf() with PyOS_snprintf().
Diffstat (limited to 'Mac/Modules/macfsmodule.c')
-rw-r--r--Mac/Modules/macfsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/macfsmodule.c b/Mac/Modules/macfsmodule.c
index 9b635e3..26d7d7f 100644
--- a/Mac/Modules/macfsmodule.c
+++ b/Mac/Modules/macfsmodule.c
@@ -706,7 +706,7 @@ mfss_repr(mfssobject *self)
{
char buf[512];
- sprintf(buf, "FSSpec((%d, %ld, '%.*s'))",
+ PyOS_snprintf(buf, sizeof(buf), "FSSpec((%d, %ld, '%.*s'))",
self->fsspec.vRefNum,
self->fsspec.parID,
self->fsspec.name[0], self->fsspec.name+1);