diff options
| author | tjg <tjg> | 2002-11-27 10:23:26 +0000 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:23:23 +0100 |
| commit | 3350079a799e9b685d829c720f2b875b27d1ff47 (patch) | |
| tree | 573c950dd45237f88db8e45e17fa86678c3c1a58 /history.c | |
| parent | 8b0eda2af45a00158ef3688a1627cb127a74b20b (diff) | |
Bug: history dumps core if more colons than substitutions (thanks
Callum Gibson).
Diffstat (limited to 'history.c')
| -rw-r--r-- | history.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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'; |