parent
edaf66e705
commit
0a5aa81295
@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
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…
Reference in new issue