1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Add a missing const.

The variable in question holds the return value of strchr when its
input string was const, so it ought logically to be const itself even
though the official prototype of strchr permits it not to be.
This commit is contained in:
Simon Tatham 2018-04-07 14:23:43 +01:00
parent e090e55179
commit 1c4f122525

View File

@ -1227,7 +1227,7 @@ static void portfwd_handler(union control *ctrl, void *dlg,
if (key) {
static const char *const afs = "A46";
static const char *const dirs = "LRD";
char *afp;
const char *afp;
int dir;
#ifndef NO_IPV6
int idx;