1
0
mirror of https://github.com/simh/simh.git synced 2026-03-03 18:16:24 +00:00

SCP: Fix uninitialized variable reference

This commit is contained in:
Mark Pizzolato
2018-07-15 07:18:59 -07:00
parent 82ea9c59ca
commit 5d7dc4d676

2
scp.c
View File

@@ -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)) {