projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix an off-by-one bug.
[paraslash.git]
/
aft.c
diff --git
a/aft.c
b/aft.c
index 133fe672f1f576b2a5ce10e66c665dc8a91c8250..df8774aae277bc3c2ead443432da69ace94d6d14 100644
(file)
--- a/
aft.c
+++ b/
aft.c
@@
-727,7
+727,7
@@
int open_and_update_audio_file(struct osl_row *aft_row, struct audio_file_data *
if (ret < 0)
goto err;
strncpy(afd->afs_status_info, pb.buf, AFS_STATUS_INFO_SIZE);
- afd->afs_status_info[AFS_STATUS_INFO_SIZE] = '\0';
+ afd->afs_status_info[AFS_STATUS_INFO_SIZE
- 1
] = '\0';
free(pb.buf);
}
aced.aft_row = aft_row;