summaryrefslogtreecommitdiffstats
path: root/backend_sonyupdneo.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend_sonyupdneo.c')
-rw-r--r--backend_sonyupdneo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend_sonyupdneo.c b/backend_sonyupdneo.c
index 10ade66..1e7ad9a 100644
--- a/backend_sonyupdneo.c
+++ b/backend_sonyupdneo.c
@@ -387,7 +387,7 @@ static int updneo_get_status(struct updneo_ctx *ctx)
int j;
char buf[7];
buf[6] = 0;
- for (j = 0 ; j < 5 ; j++) {
+ for (j = 0 ; j < 2 ; j++) {
memcpy(buf, dict[i].val + (6*j), 6);
ctx->sts.scsvi[j] = strtol(buf, NULL, 16);
}
@@ -395,7 +395,7 @@ static int updneo_get_status(struct updneo_ctx *ctx)
int j;
char buf[7];
buf[6] = 0;
- for (j = 0 ; j < 5 ; j++) {
+ for (j = 0 ; j < 2 ; j++) {
memcpy(buf, dict[i].val + (6*j), 6);
ctx->sts.scmni[j] = strtol(buf, NULL, 16);
}