From 5d7dc4d67671372c739e43c13c73e1807ec66c81 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 15 Jul 2018 07:18:59 -0700 Subject: [PATCH] SCP: Fix uninitialized variable reference --- scp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scp.c b/scp.c index 984a85f4..9195c340 100644 --- a/scp.c +++ b/scp.c @@ -3680,7 +3680,7 @@ char *tstr = (char *)malloc (1 + rbuf_len); strcpy (tstr, rbuf); if (*ops == '~') { /* Substring? */ - int offset, length; + int offset, length = rbuf_len; int o, l; switch (sscanf (ops + 1, "%d,%d", &o, &l)) {