projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
045273c
)
Fix an off-by-one bug.
author
Andre Noll
<maan@systemlinux.org>
Thu, 1 Nov 2007 17:22:20 +0000
(18:22 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Thu, 1 Nov 2007 17:22:20 +0000
(18:22 +0100)
aft.c
patch
|
blob
|
history
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;