1.1 --- a/libfsserver/lib/files/test_file_accessor.cc Fri Sep 16 22:06:38 2022 +0200
1.2 +++ b/libfsserver/lib/files/test_file_accessor.cc Fri Sep 16 22:07:49 2022 +0200
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * A test accessor producing generated content.
1.6 *
1.7 - * Copyright (C) 2021 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2021, 2022 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -68,7 +68,7 @@
1.13
1.14 char tag[32];
1.15
1.16 - sprintf(tag, "%ld:%ld", fileid, filepos);
1.17 + sprintf(tag, "%ld:%lld", fileid, filepos);
1.18
1.19 memset((void *) addr, 0, strlen(tag) + 1);
1.20 strcpy((char *) addr, tag);