summaryrefslogtreecommitdiff
path: root/wcon.c
diff options
context:
space:
mode:
authorJohn van Groningen2005-01-04 12:10:32 +0000
committerJohn van Groningen2005-01-04 12:10:32 +0000
commit9798c67ea32fbc6ce1ba72647d568adfd5d9af32 (patch)
tree312e8e1e26a01ca0e616492ca668950b4f9b515d /wcon.c
parentmove mark phase of compacting garbage collector to icompact_mark.s, (diff)
fix bug in writing strings to redirected stdout
Diffstat (limited to 'wcon.c')
-rw-r--r--wcon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wcon.c b/wcon.c
index 8c8c4ba..63883be 100644
--- a/wcon.c
+++ b/wcon.c
@@ -496,7 +496,7 @@ void w_print_string (char *s)
if (std_output_to_file){
for (p=s; *p!=0; ++p)
;
- file_write_characters (p,p-s,&file_table[1]);
+ file_write_characters (s,p-s,&file_table[1]);
return;
}