summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-10-17 15:55:49 +0200
committerLibravatar GitHub <noreply@github.com>2018-10-17 15:55:49 +0200
commit8d56269d9c9f2a5914aeb8f37f5877eb05000906 (patch)
tree0c39c5489b863206887fa23a158efb8b5eca0ee5
parentMerge pull request #2843 from c-edw/feature/2842_TruncateMessage (diff)
parentFix stringop-overflow warnings (diff)
downloadsway-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.c2
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
13static const char *overflow = "[buffer overflow]"; 13static const char overflow[] = "[buffer overflow]";
14static const int max_chars = 16384; 14static const int max_chars = 16384;
15 15
16size_t escape_markup_text(const char *src, char *dest) { 16size_t escape_markup_text(const char *src, char *dest) {