Improve string library.
[pspp-builds.git] / src / language / control / repeat.c
index a71501b79c4a3a90bc172da6ff1d8946bb1bdbe5..6cfbb6bba5cbc3ff911f81c09b3828488c8bcb52 100644 (file)
@@ -562,7 +562,7 @@ do_repeat_read (struct string *output, char **file_name, int *line_number,
     }
   line = block->cur_line;
 
-  ds_replace (output, line->line);
+  ds_assign_c_str (output, line->line);
   *file_name = line->file_name;
   *line_number = -line->line_number;
   block->cur_line = line->next;