diff --git a/C/write.c b/C/write.c index b25d7000e..4d271acbc 100755 --- a/C/write.c +++ b/C/write.c @@ -1110,8 +1110,8 @@ Yap_plwrite(Term t, int (*mywrite) (int, wchar_t), int flags, int priority) wglb.Quote_illegal = flags & Quote_illegal_f; wglb.Handle_vars = flags & Handle_vars_f; wglb.Use_portray = flags & Use_portray_f; - wglb.MaxDepth = 0L; - wglb.MaxArgs = 0L; + wglb.MaxDepth = 3L; + wglb.MaxArgs = 3L; /* notice: we must have ASP well set when using portray, otherwise we cannot make recursive Prolog calls */ wglb.keep_terms = (flags & (Use_portray_f|To_heap_f));