win64 support: encodings
This commit is contained in:
10
os/streams.c
10
os/streams.c
@@ -248,11 +248,11 @@ has_reposition(int sno,
|
||||
}
|
||||
|
||||
char *Yap_guessFileName(FILE* file, int sno, char *nameb, size_t max) {
|
||||
if (!nameb) {
|
||||
nameb = malloc(max(256, max));
|
||||
}
|
||||
if (!file) {
|
||||
strcpy(nameb, "memory buffer");
|
||||
if (!nameb) {
|
||||
nameb = malloc(max(256, max));
|
||||
}
|
||||
if (!file) {
|
||||
strcpy(nameb, "memory buffer");
|
||||
return nameb;
|
||||
}
|
||||
int f = fileno(file);
|
||||
|
Reference in New Issue
Block a user