summaryrefslogtreecommitdiff
path: root/apps/plugins/zxbox/tapefile.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/zxbox/tapefile.c')
-rw-r--r--apps/plugins/zxbox/tapefile.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/plugins/zxbox/tapefile.c b/apps/plugins/zxbox/tapefile.c
index 19f6aba980..0e262aa0f7 100644
--- a/apps/plugins/zxbox/tapefile.c
+++ b/apps/plugins/zxbox/tapefile.c
@@ -510,8 +510,7 @@ static int interpret_tzx_header(byte *hb, struct seginfo *csp)
510 int blen; 510 int blen;
511 rb->snprintf(seg_desc,DESC_LEN, "Begin Group: "); 511 rb->snprintf(seg_desc,DESC_LEN, "Begin Group: ");
512 blen = (int) rb->strlen(seg_desc); 512 blen = (int) rb->strlen(seg_desc);
513 rb->strncpy(seg_desc+blen, (char *) rbuf, (unsigned) csp->len); 513 rb->strlcpy(seg_desc+blen, (char *) rbuf, (unsigned) csp->len + 1);
514 seg_desc[csp->len + blen] = '\0';
515 } 514 }
516 break; 515 break;
517 516
@@ -618,8 +617,7 @@ static int interpret_tzx_header(byte *hb, struct seginfo *csp)
618 return 0; 617 return 0;
619 } 618 }
620 csp->ptr += csp->len; 619 csp->ptr += csp->len;
621 rb->strncpy(seg_desc, (char *) rbuf, (unsigned) csp->len); 620 rb->strlcpy(seg_desc, (char *) rbuf, (unsigned) csp->len + 1);
622 seg_desc[csp->len] = '\0';
623 break; 621 break;
624 622
625 case 0x32: 623 case 0x32: