diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-21 14:14:53 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-21 14:14:53 -0800 |
commit | 834a388e533abb3f7e926bff7d37fa480f2eda70 (patch) | |
tree | bfb8b68d3d4dfd3cdd17f2d9fc3146ba2c371226 | |
parent | aef5af610ef4847140f957b1c62f9178e06965f1 (diff) |
Fix 4 of 4 -Wformat-truncation warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | msg.c | 2 | ||||
-rw-r--r-- | screen.c | 2 | ||||
-rw-r--r-- | util.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -351,7 +351,7 @@ static int SetScrn( if (scrn == NULL) { if (msg == NULL || msg->num_scrns == 0) return 0; if (!force && XawAsciiSourceChanged(msg->source)) { - char str[100]; + char str[150]; snprintf(str, sizeof(str), "Are you sure you want to remove changes to %s?", MsgName(msg)); @@ -240,7 +240,7 @@ static void MakeTocAndView(Scrn scrn) /* the optional miscellaneous command buttons */ if (app_resources.command_button_count > 0) { - char name[12]; + char name[18]; if (app_resources.command_button_count > 500) app_resources.command_button_count = 500; for (i=1; i <= app_resources.command_button_count; i++) { @@ -242,7 +242,7 @@ void RenameAndCheck(const char *from, const char *to) char *CreateGeometry(int gbits, int x, int y, int width, int height) { - char *result, str1[10], str2[10], str3[10], str4[10]; + char *result, str1[12], str2[12], str3[12], str4[12]; if (gbits & WidthValue) snprintf(str1, sizeof(str1), "=%d", width); else |