openbsd-ports/x11/xplot/patches/patch-xplot_h
bluhm 56587013b1 Replace atoi(3) with strtonum(3) to detect overflow.
Use long integers to make overflows less likely.
Take maintainer from markus@.
OK markus@
2018-03-21 15:18:31 +00:00

17 lines
346 B
Plaintext

$OpenBSD: patch-xplot_h,v 1.1 2018/03/21 15:18:31 bluhm Exp $
Index: xplot.h
--- xplot.h.orig
+++ xplot.h
@@ -59,8 +59,8 @@ double rint(); /* YMUL! some versions of ultrix om
/* Coordinate type definitions */
typedef union coord_u {
- int i;
- unsigned int u;
+ long i;
+ unsigned long u;
struct timeval t;
double d;
} coord;