现在的位置: 首页 > 综合 > 正文

sscanf buffer overflow

2013年07月05日 ⁄ 综合 ⁄ 共 189字 ⁄ 字号 评论关闭

scanf is more primitive than you seem to think — %s will match everything up to the next whitespace. Your best solution is probably to stick with
strtok but throw it only content you've strduped from the authoritative original.

抱歉!评论已关闭.