diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-10-17 15:55:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-17 15:55:49 +0200 |
commit | 8d56269d9c9f2a5914aeb8f37f5877eb05000906 (patch) | |
tree | 0c39c5489b863206887fa23a158efb8b5eca0ee5 | |
parent | Merge pull request #2843 from c-edw/feature/2842_TruncateMessage (diff) | |
parent | Fix stringop-overflow warnings (diff) | |
download | sway-8d56269d9c9f2a5914aeb8f37f5877eb05000906.tar.gz sway-8d56269d9c9f2a5914aeb8f37f5877eb05000906.tar.zst sway-8d56269d9c9f2a5914aeb8f37f5877eb05000906.zip |
Merge pull request #2862 from SpeedJack/fix-stringop-overflow
Fix overflow in strcpy
-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) { |