-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Open
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
On macOS with Xcode 14 we now get warnings like these:
Objects/unicodeobject.c:736:16: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
While we can prove to ourselves that these specific sprintf()
calls are safe, the warnings are annoying, but disabling them would also disable other, more useful warnings (or so @Yhg1s tells me on Discord). So let's just switch these to snprintf()
.
Linked PRs
erlend-aasland, arhadthedev, furkanonder and chrstphrchvzerlend-aasland and furkanonder
Metadata
Metadata
Assignees
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error