mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-04 21:18:33 +00:00
Enable GCC 12 in actions, fix warning. (#1407)
* Enable GCC 12 in actions, fix warning. This resolves #1406.
This commit is contained in:
parent
0ccf7f01de
commit
06f000d9da
3
.github/workflows/build-and-test-linux.yaml
vendored
3
.github/workflows/build-and-test-linux.yaml
vendored
@ -29,7 +29,8 @@ jobs:
|
||||
- 13
|
||||
- 14
|
||||
exclude:
|
||||
- compiler: gcc
|
||||
- os: ubuntu-20.04
|
||||
compiler: gcc
|
||||
compiler_version: 12
|
||||
- compiler: gcc
|
||||
compiler_version: 13
|
||||
|
@ -27,9 +27,9 @@
|
||||
*
|
||||
*/
|
||||
#include <vector>
|
||||
#include "colours.h"
|
||||
#include "conky.h"
|
||||
#include "core.h"
|
||||
#include "colours.h"
|
||||
#include "display-output.hh"
|
||||
#include "logging.h"
|
||||
#include "specials.h"
|
||||
@ -190,7 +190,7 @@ void parse_scroll_arg(struct text_object *obj, const char *arg,
|
||||
sd->text[0] = 0;
|
||||
}
|
||||
|
||||
strncat(sd->text, arg + n1, strlen(arg + n1));
|
||||
strncat(sd->text, arg + n1, max_user_text.get(*state) - n1);
|
||||
sd->start = sd->direction == SCROLL_WAIT ? strlen(sd->text) : 0;
|
||||
obj->sub =
|
||||
static_cast<struct text_object *>(malloc(sizeof(struct text_object)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user