Get rid of capacity argument to ds_init() and update all callers.
[pspp-builds.git] / src / output / postscript.c
index d2cff2c25e9f774b4a9c9d406b617de193059ee7..919d1bb7debd31de3f6f5338fbbedc9db2c638c0 100644 (file)
@@ -874,7 +874,7 @@ write_text (struct outp_driver *this,
       fprintf (ext->file, "F%d setfont\n", font);
     }
 
-  ds_init (&out, 0);
+  ds_init (&out);
   for (i = 0; i < char_cnt; i = j)
     {
       for (j = i + 1; j < char_cnt; j++)
@@ -1145,7 +1145,7 @@ ps_chart_finalise (struct outp_driver *this UNUSED, struct chart *ch UNUSED)
     continue;
   fclose (ch->file);
 
-  fputs ("%%%%EndDocument\n"
+  fputs ("%%EndDocument\n"
          "end\n"
          "sp restore\n",
          x->file);
@@ -1382,7 +1382,7 @@ reencode_font (struct outp_driver *this, struct font *font)
 
   line_number = 0;
 
-  ds_init (&line, 0);
+  ds_init (&line);
   while (ds_get_config_line (file, &line, &line_number))
     {
       char *pschar, *code;