Merge pull request #2862 from SpeedJack/fix-stringop-overflow

Fix overflow in strcpy
This commit is contained in:
Drew DeVault 2018-10-17 15:55:49 +02:00 committed by GitHub
commit 8d56269d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@
#include "log.h" #include "log.h"
#include "stringop.h" #include "stringop.h"
static const char *overflow = "[buffer overflow]"; static const char overflow[] = "[buffer overflow]";
static const int max_chars = 16384; static const int max_chars = 16384;
size_t escape_markup_text(const char *src, char *dest) { size_t escape_markup_text(const char *src, char *dest) {