fbuf: New data structure for buffered file I/O.
[pspp] / src / output / ascii.c
index 66e0c4e0a6c83d4ed526afcb5dd5eadef82c6733..5a4c8c7e5652bf68fa61f469a864aa06574d8e7b 100644 (file)
@@ -134,7 +134,7 @@ make_box_index (int left, int right, int top, int bottom)
       start_side = right;
       end_side = left;
     }
-    
+
   return ((end_side * RENDER_N_LINES + bottom) * RENDER_N_LINES + start_side) * RENDER_N_LINES + top;
 }
 
@@ -500,7 +500,7 @@ ascii_submit (struct output_driver *driver,
 
       file_name = xr_draw_png_chart (chart_item, a->chart_file_name,
                                      a->chart_cnt++,
-                                    &a->fg, 
+                                    &a->fg,
                                     &a->bg);
       if (file_name != NULL)
         {
@@ -1100,7 +1100,7 @@ ascii_open_page (struct ascii_driver *a)
 
   if (a->file == NULL)
     {
-      a->file = fn_open (a->handle, a->append ? "a" : "w");
+      a->file = fn_fopen (a->handle, a->append ? "a" : "w");
       if (a->file != NULL)
         {
          if ( isatty (fileno (a->file)))