X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=aft.c;h=df8774aae277bc3c2ead443432da69ace94d6d14;hp=133fe672f1f576b2a5ce10e66c665dc8a91c8250;hb=d0f8004acf8e8f78323d672813b4ead62d0c92ff;hpb=045273c289eb3d972eea99df99967f680b06940f diff --git a/aft.c b/aft.c index 133fe672..df8774aa 100644 --- 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;