mirror of
https://github.com/RubyMetric/chsrc
synced 2026-10-25 17:36:32 +08:00
fix: 修复 curl 测速异常输出导致的段错误
This commit is contained in:
1 parent
b2b714d7bf
commit
53b12fabac
1 file changed
+1
-1
@@ -124,7 +124,7 @@ parse_and_say_curl_result (char *curl_buf)
|
||||
if (0==http_code)
|
||||
{
|
||||
char *msg = ENGLISH ? "ERROR curl output: " : "错误 curl 输出: ";
|
||||
println (red (xy_strcat (3, msg, curl_buf)));
|
||||
println (red (xy_2strcat (msg, curl_buf)));
|
||||
}
|
||||
else if (200!=http_code)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user