X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftrace%2Fvisbuf.c;h=ed3d5bb4e2f0eee6c99b888379d6d3d22292e9a7;hp=74081efe6442042ed8b388823d0456278b66fb19;hb=7c4bc0fa99a1be37a14aa19a5943a549570954c4;hpb=3ce60e9f58cc00309981ed711d0b0d3362105881 diff --git a/ncurses/trace/visbuf.c b/ncurses/trace/visbuf.c index 74081efe..ed3d5bb4 100644 --- a/ncurses/trace/visbuf.c +++ b/ncurses/trace/visbuf.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2001-2006,2007 Free Software Foundation, Inc. * + * Copyright (c) 2001-2007,2008 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 * @@ -42,7 +42,7 @@ #include #include -MODULE_ID("$Id: visbuf.c,v 1.26 2007/06/09 17:21:53 tom Exp $") +MODULE_ID("$Id: visbuf.c,v 1.27 2008/07/05 23:19:59 tom Exp $") #define NormalLen(len) (unsigned) ((len + 1) * 4) #define WideLen(len) (unsigned) ((len + 1) * 4 * MB_CUR_MAX) @@ -183,7 +183,7 @@ _nc_viswbuf2n(int bufnum, const wchar_t *buf, int len) char temp[CCHARW_MAX + 80]; int j = wctomb(temp, c), k; if (j <= 0) { - sprintf(temp, "\\u%08X", (wint_t) c); + sprintf(temp, "\\u%08X", (unsigned) c); j = strlen(temp); } for (k = 0; k < j; ++k) {