diff options
author | Niccolò Scatena <speedjack95@gmail.com> | 2018-10-17 13:00:12 +0200 |
---|---|---|
committer | Niccolò Scatena <speedjack95@gmail.com> | 2018-10-17 13:00:12 +0200 |
commit | 8c86fff6dccc45b065ad40857ed6f983e607e16c (patch) | |
tree | 0c39c5489b863206887fa23a158efb8b5eca0ee5 /common | |
parent | Merge pull request #2843 from c-edw/feature/2842_TruncateMessage (diff) | |
download | sway-8c86fff6dccc45b065ad40857ed6f983e607e16c.tar.gz sway-8c86fff6dccc45b065ad40857ed6f983e607e16c.tar.zst sway-8c86fff6dccc45b065ad40857ed6f983e607e16c.zip |
Fix stringop-overflow warnings
Diffstat (limited to 'common')
-rw-r--r-- | common/pango.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/pango.c b/common/pango.c index f0b8db66..3bc97808 100644 --- a/common/pango.c +++ b/common/pango.c | |||
@@ -10,7 +10,7 @@ | |||
10 | #include "log.h" | 10 | #include "log.h" |
11 | #include "stringop.h" | 11 | #include "stringop.h" |
12 | 12 | ||
13 | static const char *overflow = "[buffer overflow]"; | 13 | static const char overflow[] = "[buffer overflow]"; |
14 | static const int max_chars = 16384; | 14 | static const int max_chars = 16384; |
15 | 15 | ||
16 | size_t escape_markup_text(const char *src, char *dest) { | 16 | size_t escape_markup_text(const char *src, char *dest) { |