shogo82148 / mecab

Unofficial fork of taku910/mecab (Yet another Japanese morphological analyzer)
https://shogo82148.github.io/mecab/
11 stars 1 forks source link

sprintfをsnprintfに置き換え #93

Closed shogo82148 closed 1 year ago

shogo82148 commented 1 year ago

警告が出ていたので修正

./utils.h:47:8: 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]
  std::sprintf(s, "%-16f", val);