dtstyle: Resolve format-overflow issues

This commit is contained in:
Peter Howkins
2021-12-23 19:49:54 +00:00
committed by Jon Trulson
parent 7641634130
commit bf266ee14b
11 changed files with 29 additions and 29 deletions

View File

@@ -784,8 +784,8 @@ saveMain(
/* Get and write out the geometry info for our Window */
x = XtX(XtParent(style.mainWindow));
y = XtY(XtParent(style.mainWindow));
sprintf(bufr, "%s*mainWindow.x: %d\n", bufr, x);
sprintf(bufr, "%s*mainWindow.y: %d\n", bufr, y);
snprintf(bufr, sizeof(style.tmpBigStr), "%s*mainWindow.x: %d\n", bufr, x);
snprintf(bufr, sizeof(style.tmpBigStr), "%s*mainWindow.y: %d\n", bufr, y);
if(-1 == write (fd, bufr, strlen(bufr))) {
perror(strerror(errno));