--- origsrc/rc.c	2022-07-28 02:17:21.000000000 -0600
+++ src/rc.c	2022-12-31 11:02:04.782521200 -0700
@@ -437,7 +437,7 @@ dlg_create_rc(const char *filename)
     unsigned i;
     FILE *rc_file;
 
-    if ((rc_file = fopen(filename, "wt")) == NULL)
+    if ((rc_file = fopen(filename, "w")) == NULL)
 	dlg_exiterr("Error opening file for writing in dlg_create_rc().");
 
     fprintf(rc_file, "#\n\
