diff options
author | 1997-04-12 18:22:22 +0000 | |
---|---|---|
committer | 1997-04-12 18:22:22 +0000 | |
commit | b37692f881dae1acc9690dd3df389cbd7edd0705 (patch) | |
tree | a39d170d37d0c68b0bdb0572e3a25691486e6713 /lib/libc/regex/engine.c | |
parent | Be a bit more specific about EINVAL and negative offsets. (diff) | |
download | wireguard-openbsd-b37692f881dae1acc9690dd3df389cbd7edd0705.tar.xz wireguard-openbsd-b37692f881dae1acc9690dd3df389cbd7edd0705.zip |
long -> int to fix 64bit issues. This breaks 16bit machines but since we don't have any 16bit ports...) The alternative is to use int32_t's but then this code will break when/if int > 32bits which is not so unlikely. Fixes NetBSD PR #3450 from Ross Harvey (but in a different way)
Diffstat (limited to 'lib/libc/regex/engine.c')
-rw-r--r-- | lib/libc/regex/engine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/regex/engine.c b/lib/libc/regex/engine.c index b9791be3687..969d530f6df 100644 --- a/lib/libc/regex/engine.c +++ b/lib/libc/regex/engine.c @@ -36,7 +36,7 @@ */ #if defined(SNAMES) && defined(LIBC_SCCS) && !defined(lint) -static char enginercsid[] = "$OpenBSD: engine.c,v 1.2 1996/08/19 08:31:06 tholo Exp $"; +static char enginercsid[] = "$OpenBSD: engine.c,v 1.3 1997/04/12 18:22:22 millert Exp $"; #endif /* SNAMES and LIBC_SCCS and not lint */ /* @@ -1051,7 +1051,7 @@ sopno stopst; printf("%s %s-", title, pchar(*start)); printf("%s ", pchar(*stop)); - printf("%ld-%ld\n", (long)startst, (long)stopst); + printf("%d-%d\n", startst, stopst); } #ifndef PCHARDONE |