summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpctl.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2012-08-07 20:36:11 +0000
committerEric Faurot <eric@cvs.openbsd.org>2012-08-07 20:36:11 +0000
commit1517317e1dd1d9ebc456b70be3fb39bf910f1a18 (patch)
treeec930a5ec32afe61d47dd02398a1b68f4a2439d4 /usr.sbin/smtpd/smtpctl.c
parent709fbd7e42b0516b31c9becec7683058f84a7cba (diff)
fix evpid parsing on 32bit archs
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpctl.c')
-rw-r--r--usr.sbin/smtpd/smtpctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpctl.c b/usr.sbin/smtpd/smtpctl.c
index 0ea226dcb29..aefbcbb8b4c 100644
--- a/usr.sbin/smtpd/smtpctl.c
+++ b/usr.sbin/smtpd/smtpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpctl.c,v 1.83 2012/07/09 09:57:53 gilles Exp $ */
+/* $OpenBSD: smtpctl.c,v 1.84 2012/08/07 20:36:10 eric Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -166,7 +166,7 @@ connected:
char *ep;
errno = 0;
- ulval = strtoul(res->data, &ep, 16);
+ ulval = strtoull(res->data, &ep, 16);
if (res->data[0] == '\0' || *ep != '\0')
errx(1, "invalid msgid/evpid");
if (errno == ERANGE && ulval == ULLONG_MAX)