src/graph.c: uri_escape -> uri_escape_copy
authorFlorian Forster <ff@octo.it>
Thu, 24 Jun 2010 12:45:07 +0000 (14:45 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 24 Jun 2010 12:45:07 +0000 (14:45 +0200)
src/graph.c

index 3962fec..4ed2d15 100644 (file)
@@ -217,7 +217,7 @@ int graph_get_params (graph_config_t *cfg, /* {{{ */
 #define COPY_FIELD(field) do {                                       \
   const char *str = ident_get_##field (cfg->select);                 \
   char uri_str[1024];                                                \
-  uri_escape (uri_str, str, sizeof (uri_str));                       \
+  uri_escape_copy (uri_str, str, sizeof (uri_str));                  \
   strlcat (buffer, #field, buffer_size);                             \
   strlcat (buffer, "=", buffer_size);                                \
   strlcat (buffer, uri_str, buffer_size);                            \