PolicyKit: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Thu Nov 22 16:16:18 PST 2007


 src/kit/kit-string.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit f479aeced7ae070c6a22f51b0812713bd22d60bf
Author: David Zeuthen <davidz at redhat.com>
Date:   Thu Nov 22 19:15:36 2007 -0500

    avoid adding newline at the end of generated entry

diff --git a/src/kit/kit-string.c b/src/kit/kit-string.c
index 2b3d772..687c50f 100644
--- a/src/kit/kit-string.c
+++ b/src/kit/kit-string.c
@@ -611,8 +611,7 @@ out:
  * Takes an array of key/value pairs and generates a string
  * <literal>"k1=v1:k2=v2:...:k_n=v_n"</literal> where
  * <literal>k_i</literal> and <literal>v_i</literal> are percent
- * encoded representations of the given key/value pairs. The string
- * will have a newline (ASCII character 10) at end.
+ * encoded representations of the given key/value pairs.
  *
  * The string can later be parsed with kit_string_entry_parse() to get
  * the exact same list of key/value pairs back.
@@ -661,10 +660,6 @@ kit_string_entry_createv (char *buf, size_t buf_size, const char *kv_pairs[])
                 m += kit_string_percent_encode (buf + m, buf_size - m > 0 ? buf_size - m : 0, value);
         }
 
-        if (m < buf_size)
-                buf[m] = '\n';
-        m++;
-
 out:
         if (m < buf_size)
                 buf[m] = '\0';


More information about the hal-commit mailing list