Opened 23 months ago
Closed 23 months ago
#66551 closed defect (fixed)
rapidjson-devel @20180424_1: error: 'sprintf' is deprecated
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | kencu (Ken) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.0 |
Keywords: | ventura | Cc: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
Port: | rapidjson-devel |
Description
example/jsonx/jsonx.cpp:37:43: error: '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. [-Werror,-Wdeprecated-declarations] return WriteNumberElement(buffer, sprintf(buffer, "%d", i)); ^
20180424 seems like a fairly old version. Perhaps updating the port to a newer version would help. If not, the problem should be reported to the developers.
Change History (1)
comment:1 Changed 23 months ago by kencu (Ken)
Owner: | set to kencu |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
In 6516b7b69d4bb5351be59aa1c171875e7be44e6d/macports-ports (master):