]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: buffer: Clarify scope of the escape operation in virBufferEscape
authorPeter Krempa <pkrempa@redhat.com>
Tue, 11 Nov 2014 16:23:49 +0000 (17:23 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 21 Nov 2014 13:37:01 +0000 (14:37 +0100)
The escaping is applied only to the string, not the format argument.
State this fact in the docs.

src/util/virbuffer.c

index 16a81e7df5c767e1eebe92ca8f5e855e5101363d..e94b35d1dcb9df92e92ae9c82c6162016bc196db 100644 (file)
@@ -505,8 +505,9 @@ virBufferEscapeSexpr(virBufferPtr buf,
  * @str: the string argument which needs to be escaped
  *
  * Do a formatted print with a single string to a buffer.  Any characters
- * in the provided list are escaped with the given escape.  Auto indentation
- * may be applied.
+ * in the provided list that are contained in @str are escaped with the
+ * given escape.  Escaping is not applied to characters specified in @format.
+ * Auto indentation may be applied.
  */
 void
 virBufferEscape(virBufferPtr buf, char escape, const char *toescape,