summaryrefslogtreecommitdiff
path: root/src/Alloc.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-07-07 13:00:34 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-07-07 13:48:44 -0400
commit6038bd4fd95050f77c18c7cbf9ec2ca9152590af (patch)
treee410553db8cfb1ef879eae8b2c90cee46dc1b1b3 /src/Alloc.c
parent61df064c511bb93b49a67a2d2b3c4886d650eeda (diff)
constify table passed to _XtTableAddConverter to reduce strict compiler warnings
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/Alloc.c')
-rw-r--r--src/Alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Alloc.c b/src/Alloc.c
index dd2f616..625120d 100644
--- a/src/Alloc.c
+++ b/src/Alloc.c
@@ -144,7 +144,7 @@ Cardinal XtAsprintf(
_XtAllocError("vsnprintf");
*new_string = XtMalloc((Cardinal) len + 1); /* snprintf doesn't count trailing '\0' */
- if (len < sizeof(buf))
+ if ((size_t)len < sizeof(buf))
{
strncpy(*new_string, buf, (size_t) len);
(*new_string)[len] = '\0';