Skip to content

Commit 85c958a

Browse files
committed
Fix typo
1 parent bc7752e commit 85c958a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tocfiles.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ char * afs_toc_files_save_as_table(afs_toc_files * toc_files)
10191019
char * return_string = malloc(current_string_remaining_size);
10201020
char * current_string = return_string;
10211021

1022-
int n = snprintf(current_string, "%s\n", header);
1022+
int n = snprintf(current_string, current_string_remaining_size, "%s\n", header);
10231023
assert(n >= 0 && n < (int)current_string_remaining_size);
10241024
current_string_remaining_size -= n;
10251025
current_string += n;

0 commit comments

Comments
 (0)