Changeset 3472845 for cmd.c


Ignore:
Timestamp:
Feb 11, 2011, 5:18:45 PM (14 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
8a97586
Parents:
d4927a7
git-author:
Anders Kaseorg <andersk@mit.edu> (08/27/09 00:56:39)
git-committer:
Anders Kaseorg <andersk@mit.edu> (02/11/11 17:18:45)
Message:
Replace owl_sprintf with g_strdup_printf.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Karl Ramm <kcr@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cmd.c

    rd4927a7 r3472845  
    147147  cmd->name = g_strdup(name);
    148148  cmd->cmd_aliased_to = g_strdup(aliased_to);
    149   cmd->summary = owl_sprintf("%s%s", OWL_CMD_ALIAS_SUMMARY_PREFIX, aliased_to);
     149  cmd->summary = g_strdup_printf("%s%s", OWL_CMD_ALIAS_SUMMARY_PREFIX, aliased_to);
    150150  return(0);
    151151}
     
    186186    } else {
    187187      cmdbuffargs = skiptokens(cmdbuff, 1);
    188       newcmd = owl_sprintf("%s %s", cmd->cmd_aliased_to, cmdbuffargs);
     188      newcmd = g_strdup_printf("%s %s", cmd->cmd_aliased_to, cmdbuffargs);
    189189      rv = owl_function_command(newcmd);
    190190      g_free(newcmd);
     
    247247char *owl_cmd_describe(const owl_cmd *cmd) {
    248248  if (!cmd || !cmd->name || !cmd->summary) return NULL;
    249   return owl_sprintf("%-25s - %s", cmd->name, cmd->summary);
     249  return g_strdup_printf("%-25s - %s", cmd->name, cmd->summary);
    250250}
    251251
Note: See TracChangeset for help on using the changeset viewer.