mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
Import a couple of patches from upstream to eliminate some Clang warnings. PORTREVISION not changed intentionally as changes are cosmetic.
11 lines
381 B
C
11 lines
381 B
C
--- src/pap.c.orig 2020-09-06 21:33:02.000000000 +0700
|
|
+++ src/pap.c 2023-02-18 22:36:56.550325000 +0700
|
|
@@ -154,7 +154,7 @@ PapInput(Link l, AuthData auth, const u_char *pkt, u_s
|
|
goto error;
|
|
|
|
pass_len = pkt[1 + name_len];
|
|
- pass_ptr = pkt + 1 + name_len + 1;
|
|
+ pass_ptr = (const char *)pkt + 1 + name_len + 1;
|
|
|
|
if (name_len + 1 + pass_len + 1 > len)
|
|
goto error;
|