diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-07-29 14:41:21 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-07-29 14:42:03 -0700 |
commit | 52ae5f885e9c72b7b1477156bdb946fc78294052 (patch) | |
tree | 10bb26e2dc7f7c4c79fbf11aca2d34ae6f44e436 /builtin.cpp | |
parent | b6658c54974f0488de89042545e417d2b9d2b5eb (diff) |
Improve history robustness against corrupt files
Fixes #1581
Diffstat (limited to 'builtin.cpp')
-rw-r--r-- | builtin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin.cpp b/builtin.cpp index ebfecc92..5ab3ea43 100644 --- a/builtin.cpp +++ b/builtin.cpp @@ -3583,7 +3583,7 @@ static int builtin_history(parser_t &parser, wchar_t **argv) if (argc == 1) { wcstring full_history; - history->get_string_representation(full_history, wcstring(L"\n")); + history->get_string_representation(&full_history, wcstring(L"\n")); stdout_buffer.append(full_history); stdout_buffer.push_back('\n'); return STATUS_BUILTIN_OK; |