Shouldn't you include conio.h?

On Tue, Apr 27, 2010 at 10:30 AM, <webmas...@opensc-project.org> wrote:
>
> Revision: 4268
> Author:   viktor.tarasov
> Date:     2010-04-27 07:30:38 +0000 (Tue, 27 Apr 2010)
>
> Log Message:
> -----------
> tools: thanks to Andreas; for win32 'get password' procedure uses _getch() 
> instead of getchar()
>
> Modified Paths:
> --------------
>    trunk/src/tools/util.c
>
> Modified: trunk/src/tools/util.c
> ===================================================================
> --- trunk/src/tools/util.c      2010-04-26 12:29:44 UTC (rev 4267)
> +++ trunk/src/tools/util.c      2010-04-27 07:30:38 UTC (rev 4268)
> @@ -295,8 +295,7 @@
>                return -1;
>
>        for (i = 0; i < MAX_PASS_SIZE - 1; i++) {
> -               /* buf[i] = _getch(); */
> -               buf[i] = getchar();
> +               buf[i] = _getch();
>                if (buf[i] == 0 || buf[i] == 3)
>                        return -1;
>                if (buf[i] == '\n' || buf[i] == '\r')
>
>
> _______________________________________________
> opensc-commits mailing list
> opensc-comm...@lists.opensc-project.org
> http://www.opensc-project.org/mailman/listinfo/opensc-commits
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to