Changeset 1c7a4e0


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.
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r6794f72 r1c7a4e0  
    99        Fixed a quoting problem in configure.in
    1010        Changed top of help to use 'show' instead of M-x
    11 
     11        Fixed a bug in the summary field for user-created aliases
     12       
    12131.2.1-pre-1
    1314        Added RCS Id strings to all files.
  • 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}
  • owl.h

    r1aee7d9 r1c7a4e0  
    9696#define OWL_INCLUDE_REG_TESTS  1  /* whether to build in regression tests */
    9797
    98 #define OWL_CMD_ALIAS_SUMMARY_PREFIX "command alias to "
     98#define OWL_CMD_ALIAS_SUMMARY_PREFIX "command alias to: "
    9999
    100100#ifndef CTRL
Note: See TracChangeset for help on using the changeset viewer.