Module Name: src Committed By: christos Date: Mon Aug 30 14:57:04 UTC 2021
Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: Skip the current character before parsing the number of arguments. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/usr.bin/xlint/lint2/read.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/xlint/lint2/read.c diff -u src/usr.bin/xlint/lint2/read.c:1.58 src/usr.bin/xlint/lint2/read.c:1.59 --- src/usr.bin/xlint/lint2/read.c:1.58 Sun Aug 29 06:18:17 2021 +++ src/usr.bin/xlint/lint2/read.c Mon Aug 30 10:57:04 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: read.c,v 1.58 2021/08/29 10:18:17 rillig Exp $ */ +/* $NetBSD: read.c,v 1.59 2021/08/30 14:57:04 christos Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -38,7 +38,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: read.c,v 1.58 2021/08/29 10:18:17 rillig Exp $"); +__RCSID("$NetBSD: read.c,v 1.59 2021/08/30 14:57:04 christos Exp $"); #endif #include <ctype.h> @@ -137,6 +137,7 @@ static short parse_short(const char **p) { + (*p)++; return (short)parse_int(p); }