Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    r7b89e8c r6646fdb  
    262262CALLER_OWN char *owl_arg_quote(const char *arg)
    263263{
    264   GString *buf = g_string_new("");
     264  GString *buf = g_string_new("");;
    265265  owl_string_append_quoted_arg(buf, arg);
    266   return g_string_free(buf, false);
    267 }
    268 
    269 /* Returns a quoted version of argv. owl_parseline on the result should give
    270  * back the input. */
    271 CALLER_OWN char *owl_argv_quote(int argc, const char *const *argv)
    272 {
    273   int i;
    274   GString *buf = g_string_new("");
    275   for (i = 0; i < argc; i++) {
    276     if (i > 0)
    277       g_string_append_c(buf, ' ');
    278     owl_string_append_quoted_arg(buf, argv[i]);
    279   }
    280266  return g_string_free(buf, false);
    281267}
Note: See TracChangeset for help on using the changeset viewer.