- Timestamp:
- Feb 11, 2011, 5:18:45 PM (14 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cmd.c
rd4927a7 r3472845 147 147 cmd->name = g_strdup(name); 148 148 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); 150 150 return(0); 151 151 } … … 186 186 } else { 187 187 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); 189 189 rv = owl_function_command(newcmd); 190 190 g_free(newcmd); … … 247 247 char *owl_cmd_describe(const owl_cmd *cmd) { 248 248 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); 250 250 } 251 251
Note: See TracChangeset
for help on using the changeset viewer.