Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75cdf3d

Browse files
committed
Merge pull request #3418 from cgohlke/patch-4
MAINT: use PyOS_snprintf instead of snprintf
2 parents 558cd20 + f502acf commit 75cdf3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/linalg/lapack_lite/python_xerbla.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ int xerbla_(char *srname, integer *info)
3333
while( len && srname[len-1]==' ' )
3434
len--;
3535

36-
snprintf(buf, sizeof(buf), format, len, srname, *info);
36+
PyOS_snprintf(buf, sizeof(buf), format, len, srname, *info);
3737
save = PyGILState_Ensure();
3838
PyErr_SetString(PyExc_ValueError, buf);
3939
PyGILState_Release(save);

0 commit comments

Comments
 (0)