X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cde%2Fprograms%2Fdtstyle%2FStartup.c;h=bc754c0551cb1a0c5b50a22fcc8d80b1925b99d2;hb=3503243d14aabccf09337dfd6b0133513d14d846;hp=c1c39d9d18dd25ae72363281f5999b4ef47a2ee5;hpb=a493d3588d05bda1017aefb15b5a558f9b9d9eed;p=oweals%2Fcde.git diff --git a/cde/programs/dtstyle/Startup.c b/cde/programs/dtstyle/Startup.c index c1c39d9d..bc754c05 100644 --- a/cde/programs/dtstyle/Startup.c +++ b/cde/programs/dtstyle/Startup.c @@ -16,7 +16,7 @@ * details. * * You should have received a copy of the GNU Lesser General Public - * License along with these librararies and programs; if not, write + * License along with these libraries and programs; if not, write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301 USA */ @@ -43,6 +43,7 @@ #include #include +#include #include #include @@ -726,7 +727,9 @@ saveStartup( sprintf(bufr, "%s*startupDlg.x: %d\n", bufr, x); sprintf(bufr, "%s*startupDlg.y: %d\n", bufr, y); - write (fd, bufr, strlen(bufr)); + if(-1 == write (fd, bufr, strlen(bufr))) { + perror(strerror(errno)); + } } }