mirror of
https://review.haiku-os.org/buildtools
synced 2025-01-31 10:34:41 +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;
|
int j;
|
||||||
// the lines
|
// the lines
|
||||||
for (j = 0; result && j < entry->strings->count; j++) {
|
for (j = 0; result && j < entry->strings->count; j++) {
|
||||||
result = (fprintf(file,
|
const char* string = entry->strings->strings[j];
|
||||||
entry->strings->strings[j]) > 0);
|
result = (fwrite(string, strlen(string), 1, file) > 0);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
result = 0;
|
result = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user