9 Star 0 Fork 15

src-openEuler/cyrus-sasl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Use-int-instead-of-char-for-variable-c.patch 788 Bytes
一键复制 编辑 原始数据 按行查看 历史
yixiangzhike 提交于 2024-10-11 10:33 . Fix char overflow
From 4013caeda28f67980df1bc8fcd95e80135d248e8 Mon Sep 17 00:00:00 2001
From: yixiangzhike <yixiangzhike007@163.com>
Date: Mon, 16 Jan 2023 20:28:28 +0800
Subject: [PATCH] Use int instead of char for variable c
In some systems, char is compiled as unsigned char by default,
as a result, testsuite always fails in abnormal process.
Signed-off-by: yixiangzhike <yixiangzhike007@163.com>
---
utils/testsuite.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utils/testsuite.c b/utils/testsuite.c
index 12da7f74..79e861d2 100644
--- a/utils/testsuite.c
+++ b/utils/testsuite.c
@@ -2938,7 +2938,7 @@ void usage(void)
int main(int argc, char **argv)
{
- char c;
+ int c;
int random_tests = -1;
int do_all = 0;
int skip_do_correct = 0;
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/cyrus-sasl.git
git@gitee.com:src-openeuler/cyrus-sasl.git
src-openeuler
cyrus-sasl
cyrus-sasl
master

搜索帮助