X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fkey_names.c;h=579f02fc4537128a3f685a9daf824b98d4a4463b;hp=ba45656d50a8ddac0e43f0341b099e2b96a0035d;hb=b11cef1e315b58820ea0cde239ebf2f741ef8948;hpb=f6718d80c998008de6cfe8e6296bee3958ff86d7;ds=sidebyside diff --git a/test/key_names.c b/test/key_names.c index ba45656d..579f02fc 100644 --- a/test/key_names.c +++ b/test/key_names.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2007,2008 Free Software Foundation, Inc. * + * Copyright (c) 2007-2008,2014 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 * @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: key_names.c,v 1.4 2008/10/11 20:22:37 tom Exp $ + * $Id: key_names.c,v 1.5 2014/08/02 17:24:55 tom Exp $ */ #include @@ -77,7 +77,7 @@ main(int argc, char *argv[]) endwin(); } for (n = -1; n < KEY_MAX + 512; n++) { - const char *result = key_name(n); + const char *result = key_name((wchar_t) n); if (result != 0) printf("%d(%5o):%s\n", n, n, result); }