Fix some other code
This commit is contained in:
parent
c5bc5bc9ce
commit
ff2140ddd8
|
@ -123,7 +123,7 @@ tobject_t* __fs_readalltext_external_method(runtime_t* rt,void* ptr,list_tobject
|
|||
if(f)
|
||||
{
|
||||
string_t* str = string_create();
|
||||
string_read(str,f,fread);
|
||||
string_read(str,f,(size_t (*)(void*,size_t,size_t,void*))fread);
|
||||
free(fileName);
|
||||
fclose(f);
|
||||
return tobject_string(rt,str);
|
||||
|
|
|
@ -37,7 +37,7 @@ int main(int argc,char** argv)
|
|||
|
||||
FILE* f = fopen(argv[1],"r");
|
||||
if(f != NULL){
|
||||
string_read(cmd,f,fread);
|
||||
string_read(cmd,f,(size_t (*)(void*,size_t,size_t,void*))fread);
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue