Module Name: src Committed By: christos Date: Mon Aug 30 18:03:52 UTC 2021
Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: Move the character one back so that we don't increment twice To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 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.59 src/usr.bin/xlint/lint2/read.c:1.60 --- src/usr.bin/xlint/lint2/read.c:1.59 Mon Aug 30 10:57:04 2021 +++ src/usr.bin/xlint/lint2/read.c Mon Aug 30 14:03:52 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: read.c,v 1.59 2021/08/30 14:57:04 christos Exp $ */ +/* $NetBSD: read.c,v 1.60 2021/08/30 18:03:52 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.59 2021/08/30 14:57:04 christos Exp $"); +__RCSID("$NetBSD: read.c,v 1.60 2021/08/30 18:03:52 christos Exp $"); #endif #include <ctype.h> @@ -137,8 +137,11 @@ static short parse_short(const char **p) { + short s; (*p)++; - return (short)parse_int(p); + s = (short)parse_int(p); + (*p)--; + return s; } void