Changeset 1c7a4e0 for cmd.c


Ignore:
Timestamp:
Jun 30, 2002, 12:46:43 PM (19 years ago)
Author:
Erik Nygren <nygren@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
a9d0209
Parents:
6794f72
Message:
Fixed a bug in the summary field for user-created aliases.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cmd.c

    r1aee7d9 r1c7a4e0  
    107107  cmd->name = owl_strdup(name);
    108108  cmd->cmd_aliased_to = owl_strdup(aliased_to);
    109   cmd->summary = owl_malloc(strlen(name)+strlen(OWL_CMD_ALIAS_SUMMARY_PREFIX)+2);
     109  cmd->summary = owl_malloc(strlen(aliased_to)+strlen(OWL_CMD_ALIAS_SUMMARY_PREFIX)+2);
    110110  strcpy(cmd->summary, OWL_CMD_ALIAS_SUMMARY_PREFIX);
    111   strcat(cmd->summary, name);
     111  strcat(cmd->summary, aliased_to);
    112112  return(0);
    113113}
Note: See TracChangeset for help on using the changeset viewer.