summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-02-24 10:41:07 +0100
committerMichael Stahl <michael.stahl@cib.de>2020-02-24 19:15:35 +0100
commit589abe39262a37fb1205fac229d7004ee01dd3f9 (patch)
tree3417a47cfebe498bf228df639bcc49e7d29de193 /vcl
parent6c4721da4f339d6d1bed6ded0a6ba40d3857b379 (diff)
vcl: GCC 9.2.1 -Werror=format-overflow
vcl/source/gdi/metaact.cxx:104:26: error: ā€˜%uā€™ directive writing between 1 and 10 bytes into a region of size 6 [-Werror=format-overflow=] 104 | sprintf(buffer, "%u", static_cast<unsigned int>(nMetaAction)); Change-Id: Iec295a5a2477b2a13d771c392e0de6c3920a2eac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89350 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/metaact.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx
index 24055dfbc135..bf4902fb9222 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -100,7 +100,7 @@ meta_action_name(MetaActionType nMetaAction)
default:
// Yes, return a pointer to a static buffer. This is a very
// local debugging output function, so no big deal.
- static char buffer[6];
+ static char buffer[11];
sprintf(buffer, "%u", static_cast<unsigned int>(nMetaAction));
return buffer;
}