summaryrefslogtreecommitdiff
path: root/saveutil.c
AgeCommit message (Collapse)AuthorFilesLines
2021-11-30WriteSave: allocate enough room for full session_save_file in errorAlan Coopersmith1-1/+1
Clears warning from gcc 11.2: saveutil.c: In function ‘WriteSave’: saveutil.c:315:75: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 221 [-Wformat-truncation=] 315 | snprintf (msg, sizeof(msg), "%s: Error creating session save file %s", | ^~ 316 | Argv[0], session_save_file); | ~~~~~~~~~~~~~~~~~ saveutil.c:315:9: note: ‘snprintf’ output 36 or more bytes (assuming 1059) into a destination of size 256 315 | snprintf (msg, sizeof(msg), "%s: Error creating session save file %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 316 | Argv[0], session_save_file); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-11-30Use _CONST_X_STRING to make libXt declare String as const char *Alan Coopersmith1-5/+4
Clears 5 -Wincompatible-pointer-types warnings and 18 -Wdiscarded-qualifiers warnings from gcc Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-02-28Close file descriptors on exec.Thomas Klausner1-0/+3
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2011-11-19Fix some gcc -Wwrite-strings warningsAlan Coopersmith1-10/+11
Many are unfixable at the moment due to the libXt API Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-01-26Correct make distcheck and gcc/sparse warnings.Paulo Cesar Pereira de Andrade1-3/+2
2007-11-26Use snprintf, strdup & remove instead of sprintf, malloc/strcpy & unlinkAlan Coopersmith1-7/+6
2004-04-23Merging XORG-CURRENT into trunksco_port_update-baserel-0-6-1lg3d-rel-0-7-0lg3d-rel-0-6-2lg3d-baseXORG-6_8_99_9XORG-6_8_99_8XORG-6_8_99_7XORG-6_8_99_6XORG-6_8_99_5XORG-6_8_99_4XORG-6_8_99_3XORG-6_8_99_2XORG-6_8_99_15XORG-6_8_99_14XORG-6_8_99_13XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10XORG-6_8_99_1XORG-6_8_2XORG-6_8_1_904XORG-6_8_1_903XORG-6_8_1_902XORG-6_8_1_901XORG-6_8_1XORG-6_8_0XORG-6_7_99_904XORG-6_7_99_903XORG-6_7_99_902XORG-6_7_99_901XORG-6_7_99_2XORG-6_7_99_1XACE-SELINUX-MERGEXORG-6_8-branchEgbert Eich1-1/+1
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich1-1/+1
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0Egbert Eich1-1/+1
2004-02-26readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich1-1/+1
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich1-1/+1
2003-11-14XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1Kaleb Keithley1-40/+22
2003-11-14R6.6 is the Xorg base-lineXORG-MAINXORG-STABLEKaleb Keithley1-0/+557