osc: fix param calculation with more than one digit

This commit is contained in:
Daniel Eklöf 2019-07-05 19:04:09 +02:00
parent b9bd637021
commit b69282545c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

1
osc.c
View file

@ -27,6 +27,7 @@ osc_dispatch(struct terminal *term)
return false;
}
param *= 10;
param += c - '0';
}
LOG_DBG("OCS: %.*s (param = %d)",