From 1e9dc0393c67ff7eb2d7691931303e58dc112f5a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 20 Mar 1995 08:21:38 +0000 Subject: Mon Mar 20 03:19:23 1995 Roland McGrath * stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the read-ahead character. * hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c, hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c, hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c, hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c: Get anal with unsigned to pacify compiler. --- stdio/vfscanf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdio') diff --git a/stdio/vfscanf.c b/stdio/vfscanf.c index cacf16f466..cdfedc2485 100644 --- a/stdio/vfscanf.c +++ b/stdio/vfscanf.c @@ -251,7 +251,7 @@ DEFUN(__vfscanf, (s, format, arg), case 'n': /* Answer number of assignments done. */ if (do_assign) - *ARG (int *) = read_in; + *ARG (int *) = read_in - 1; /* Don't count the read-ahead. */ break; case 'c': /* Match characters. */ -- cgit 1.4.1