mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-02-02 17:15:14 +08:00
Not use itoa
This commit is contained in:
parent
0fa51b34ae
commit
3240b3d4a2
|
@ -441,7 +441,7 @@ chsrc_run (const char *cmd)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char buf[8] = {0};
|
char buf[8] = {0};
|
||||||
itoa(status, buf, 10);
|
sprintf (buf, "%d", status);
|
||||||
char *str = xy_2strjoin ("命令执行失败,返回码 ", buf);
|
char *str = xy_2strjoin ("命令执行失败,返回码 ", buf);
|
||||||
xy_error_remarkably (App_Name, "运行", str);
|
xy_error_remarkably (App_Name, "运行", str);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user