]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/trace/visbuf.c
ncurses 5.6 - patch 20070407
[ncurses.git] / ncurses / trace / visbuf.c
index 0540ee6d8184d3d0ecdb01636897fc9cd808bd57..706dea0e450f1cab6d6580bf12651be24e1afcf5 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 2001-2005,2006 Free Software Foundation, Inc.              *
+ * Copyright (c) 2001-2006,2007 Free Software Foundation, Inc.              *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
 #include <tic.h>
 #include <ctype.h>
 
-MODULE_ID("$Id: visbuf.c,v 1.21 2006/12/02 21:20:28 tom Exp $")
+MODULE_ID("$Id: visbuf.c,v 1.23 2007/04/07 19:25:28 tom Exp $")
 
+#ifdef TRACE
 static const char d_quote[] = {D_QUOTE, 0};
 static const char l_brace[] = {L_BRACE, 0};
 static const char r_brace[] = {R_BRACE, 0};
+#endif
 
 static char *
 _nc_vischar(char *tp, unsigned c)
@@ -99,7 +101,7 @@ _nc_visbuf2n(int bufnum, const char *buf, int len)
     tp = vbuf = _nc_trace_buf(bufnum, (unsigned) (len * 4) + 5);
 #else
     {
-       static char *mybuf[2];
+       static char *mybuf[4];
        mybuf[bufnum] = typeRealloc(char, (unsigned) (len * 4) + 5, mybuf[bufnum]);
        tp = vbuf = mybuf[bufnum];
     }