Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Windows) fix compiler warnings #641

Closed
giampaolo opened this issue Jul 9, 2015 · 2 comments
Closed

(Windows) fix compiler warnings #641

giampaolo opened this issue Jul 9, 2015 · 2 comments

Comments

@giampaolo
Copy link
Owner

psutil/_psutil_windows.c(1329) : warning C4995: '_stprintf': name was marked as #pragma deprecated
psutil/_psutil_windows.c(1329) : warning C4995: 'sprintf': name was marked as #pragma deprecated
psutil/_psutil_windows.c(2250) : warning C4995: 'sprintf': name was marked as #pragma deprecated
psutil/_psutil_windows.c(2304) : warning C4995: 'sprintf': name was marked as #pragma deprecated
psutil/_psutil_windows.c(2315) : warning C4995: 'sprintf': name was marked as #pragma deprecated
psutil/_psutil_windows.c(2456) : warning C4995: 'strcat': name was marked as #pragma deprecated
psutil/_psutil_windows.c(2461) : warning C4995: 'strcat': name was marked as #pragma deprecated
psutil/_psutil_windows.c(2464) : warning C4995: 'strcat': name was marked as #pragma deprecated
psutil/_psutil_windows.c(2467) : warning C4995: 'strcat': name was marked as #pragma deprecated
psutil/_psutil_windows.c(2472) : warning C4995: 'strcat': name was marked as #pragma deprecated
psutil/_psutil_windows.c(2474) : warning C4995: 'strcat': name was marked as #pragma deprecated
psutil/_psutil_windows.c(2585) : warning C4995: 'sprintf': name was marked as #pragma deprecated
psutil/_psutil_windows.c(2940) : warning C4995: 'sprintf': name was marked as #pragma deprecated
psutil/_psutil_windows.c(2948) : warning C4995: 'sprintf': name was marked as #pragma deprecated
psutil/_psutil_windows.c(2952) : warning C4995: 'sprintf': name was marked as #pragma deprecated
psutil/_psutil_windows.c(3118) : warning C4995: 'sprintf': name was marked as #pragma deprecated
psutil/_psutil_windows.c(3120) : warning C4995: 'sprintf': name was marked as #pragma deprecated
@giampaolo
Copy link
Owner Author

@mrjefftang maybe you want to take a look at this?

@mrjefftang
Copy link
Collaborator

I'm not sure when I'll get around to working on this but it's just a matter of using sprintf_s, strcat_s and passing in the buffer size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants