Skip to content

Commit 3240b3d

Browse files
committed
Not use itoa
1 parent 0fa51b3 commit 3240b3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/chsrc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ chsrc_run (const char *cmd)
441441
else
442442
{
443443
char buf[8] = {0};
444-
itoa(status, buf, 10);
444+
sprintf (buf, "%d", status);
445445
char *str = xy_2strjoin ("命令执行失败,返回码 ", buf);
446446
xy_error_remarkably (App_Name, "运行", str);
447447
}

0 commit comments

Comments
 (0)