dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtstyle / Font.c
index 7c82acd880b15e020e0aca394df7de69deee5649..1dbf7a0bd381978910c609a06627dbf51a0b46f0 100644 (file)
@@ -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
  */
@@ -66,6 +66,7 @@
 #include <Dt/HourGlass.h>
 
 #include <string.h>
+#include <errno.h>
 #include "Help.h"
 #include "Main.h"
 #include "SaveRestore.h"
@@ -753,7 +754,9 @@ saveFonts(
         sprintf(bufr, "%s*Fonts.x: %d\n", bufr, x);
         sprintf(bufr, "%s*Fonts.y: %d\n", bufr, y);
 
-        write (fd, bufr, strlen(bufr));
+        if(-1 == write (fd, bufr, strlen(bufr))) {
+               perror(strerror(errno));
+       }
     }
 }