diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-21 11:45:13 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-21 11:45:13 -0800 |
commit | 237cf19a7752602025c5eb131e47088882a59db4 (patch) | |
tree | 67d0ef3050f2de4be18551d3c5482d4a980db2ea /reader.cpp | |
parent | 2206e221bd58b19141872c062012b6a9db0d73a2 (diff) |
Switch to using std::vector instead of int* for colors in highlight.cpp, for better range bounds checking
Diffstat (limited to 'reader.cpp')
-rw-r--r-- | reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2373,7 +2373,7 @@ public: if (secDelay > 0) usleep((useconds_t)(secDelay * 1E6)); //write(0, "Start", 5); if (! string_to_highlight.empty()) { - highlight_function( string_to_highlight.c_str(), &colors.at(0), match_highlight_pos, NULL /* error */, vars); + highlight_function( string_to_highlight.c_str(), colors, match_highlight_pos, NULL /* error */, vars); } //write(0, "End", 3); return 0; |