Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) by mail-b.sr.ht (Postfix) with ESMTPS id 75763FF0F8 for <~martijnbraam/public-inbox@lists.sr.ht>; Mon, 19 Oct 2020 18:39:52 +0000 (UTC) Authentication-Results: mail-b.sr.ht; dkim=pass (2048-bit key) header.d=kobysamuel.com header.i=@kobysamuel.com header.b=UTF0QnNQ Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4CFQXl2Lj6zKmSK; Mon, 19 Oct 2020 20:39:51 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kobysamuel.com; s=MBO0001; t=1603132789; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=g+22tHPj4c0Cpc+UkFG2Wt89rHDdeRNVJOF35BySpDg=; b=UTF0QnNQdWV1LhX8PD0Dfir4o9qd001QL9IfL2hVlo+xc7goYJuXGefo2TV08xTiM0NIWK BmrbWBM1xGwoAxSK1rz1Npn4clYKF0f31AdQ6u3G2qyi2G1Gd/S3CODX/OMGSzlRg6iobw FFgp5VskdMag6YwFiKCUMZ/sWTdCph2EaNNtjm8sCOw+7YIkr4YPt5SEDzkVkgRh7/+H5I K5VypJ26gdstqF7oehi4w/axsOrFoF8fLpOem7+62PVTVjf5QDepyPIJqoAQ9vPXvYSPCt 19/lQlWtROvRFFebdB6Tt7mbo87NQi8dMmbgzgilB7IBZBT6dNcmayUXGtyN9w== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id sA6q3aZ-8XH5; Mon, 19 Oct 2020 20:39:48 +0200 (CEST) From: Koby Samuel To: ~martijnbraam/public-inbox@lists.sr.ht Cc: Koby Samuel Subject: [PATCH] referencing value fix Date: Mon, 19 Oct 2020 14:39:27 -0400 Message-Id: <20201019183927.24490-1-koby@kobysamuel.com> MIME-Version: 1.0 X-MBO-SPAM-Probability: X-Rspamd-Score: -4.91 / 15.00 / 15.00 X-Rspamd-Queue-Id: 7CAB416FD X-Rspamd-UID: 36eebe Content-Transfer-Encoding: quoted-printable --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 754b269..4f787b7 100644 --- a/main.c +++ b/main.c @@ -703,7 +703,7 @@ not_yet: } =20 char *endptr =3D NULL; - vote =3D strtol(input[6], &endptr, 10); + vote =3D strtol(&input[6], &endptr, 10); if (!endptr || endptr[0] !=3D '\0') { snprintf(buf, sizeof(buf), "Invalid kick, not an integer\n"); write(players[pid].fd, buf, strlen(buf)); --=20 2.24.3 (Apple Git-128)