1 Star 0 Fork 9

ikernel_Mryao/neon

forked from src-openEuler/neon 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
neon-0.30.2-lockprintf.patch 706 Bytes
一键复制 编辑 原始数据 按行查看 历史
dogsheng 提交于 2019-11-19 11:51 +08:00 . Package init
Supress gcc warnings.
--- neon-0.30.2/test/lock.c.lockprintf
+++ neon-0.30.2/test/lock.c
@@ -73,11 +73,11 @@
const char *token_href)
{
static char buf[BUFSIZ];
- sprintf(buf,
- "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
- "<D:prop xmlns:D=\"DAV:\">"
- "<D:lockdiscovery>%s</D:lockdiscovery></D:prop>\n",
- activelock(scope, depth, owner, timeout, token_href));
+ ne_snprintf(buf, sizeof buf,
+ "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
+ "<D:prop xmlns:D=\"DAV:\">"
+ "<D:lockdiscovery>%s</D:lockdiscovery></D:prop>\n",
+ activelock(scope, depth, owner, timeout, token_href));
return buf;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ikernel-mryao/neon.git
git@gitee.com:ikernel-mryao/neon.git
ikernel-mryao
neon
neon
master

搜索帮助