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:
Ingo Weinhold 2010-03-02 13:30:31 +00:00
parent 89726009be
commit a676a7f33a

View File

@ -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;