diff options
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | history.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -812,3 +812,8 @@ Changes since rc-1.5b2 Bug: don't call ealloc(0) on systems where getgroups() doesn't return egid (thanks Chris Siebenmann). + +2002-11-27 + + Bug: history dumps core if more colons than substitutions (thanks + Callum Gibson). @@ -78,6 +78,8 @@ static char *sub(char *s, char *old, char *new) { char *t, *u; t = isin(s, old); + if (!t) + return s; u = newstr(); *t = '\0'; |