Skip to content

MAINT: numpy.i: Replace deprecated sprintf with snprintf (#31056)#31084

Merged
charris merged 1 commit intonumpy:maintenance/2.4.xfrom
charris:backport-31056
Mar 28, 2026
Merged

MAINT: numpy.i: Replace deprecated sprintf with snprintf (#31056)#31084
charris merged 1 commit intonumpy:maintenance/2.4.xfrom
charris:backport-31056

Conversation

@charris
Copy link
Copy Markdown
Member

@charris charris commented Mar 28, 2026

Backport of #31056.

PR summary

This PR is for #31055.
The suggested changes in tools/swig/numpy.i replace deprecated sprintf with snprintf.

Similar issue was raised in #30997 and resolved in #30998.

First time committer introduction

Hi, I'm Denis Prokopenko, Researcher at King's College London. My main use of numpy is development of medical imaging methods. This particular PR was inspired by similar changes introduced in STIR UCL/STIR#1699.

AI Disclosure

No AI tools used

@charris charris added this to the 2.4.4 release milestone Mar 28, 2026
@charris charris added 03 - Maintenance 08 - Backport Used to tag backport PRs labels Mar 28, 2026
@charris charris merged commit 02e838b into numpy:maintenance/2.4.x Mar 28, 2026
69 checks passed
@charris charris deleted the backport-31056 branch March 28, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

03 - Maintenance 08 - Backport Used to tag backport PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants