mirror of
https://review.haiku-os.org/buildtools
synced 2025-01-18 12:28:37 +01:00
Don't use unknown strings as fprintf() format.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@35719 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
89726009be
commit
a676a7f33a
@ -578,8 +578,8 @@ write_jcache(jamfile_cache* cache)
|
||||
int j;
|
||||
// the lines
|
||||
for (j = 0; result && j < entry->strings->count; j++) {
|
||||
result = (fprintf(file,
|
||||
entry->strings->strings[j]) > 0);
|
||||
const char* string = entry->strings->strings[j];
|
||||
result = (fwrite(string, strlen(string), 1, file) > 0);
|
||||
}
|
||||
} else
|
||||
result = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user