Mercurial > vim
comparison src/quickfix.c @ 9573:9946c4c33598 v7.4.2064
commit https://github.com/vim/vim/commit/4f5c5f29806e53251b7a7b68ce7de86a21ff8015
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 17 22:25:36 2016 +0200
patch 7.4.2064
Problem: Coverity warns for possible buffer overflow.
Solution: Use vim_strcat() instead of strcat().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 17 Jul 2016 22:30:07 +0200 |
parents | ccbd2e604e59 |
children | 2fb7e008ac9b |
comparison
equal
deleted
inserted
replaced
9572:414afa129098 | 9573:9946c4c33598 |
---|---|
2593 | 2593 |
2594 if (title != NULL) | 2594 if (title != NULL) |
2595 { | 2595 { |
2596 while (STRLEN(buf) < 34) | 2596 while (STRLEN(buf) < 34) |
2597 STRCAT(buf, " "); | 2597 STRCAT(buf, " "); |
2598 STRCAT(buf, title); | 2598 vim_strcat(buf, title, IOSIZE); |
2599 } | 2599 } |
2600 trunc_string(buf, buf, Columns - 1, IOSIZE); | 2600 trunc_string(buf, buf, Columns - 1, IOSIZE); |
2601 msg(buf); | 2601 msg(buf); |
2602 } | 2602 } |
2603 | 2603 |