You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
706 B
23 lines
706 B
|
|
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;
|
|
}
|
|
|