@@ -256,7 +256,7 @@ void MCFilesEvalSpecialFolderPath(MCExecContext& ctxt, MCStringRef p_folder, MCS
256256 MCNameCreate (p_folder, &t_path);
257257 if (MCS_getspecialfolder (*t_path, r_path))
258258 {
259- if (MCStringGetLength (r_path) == 0 )
259+ if (MCStringIsEmpty (r_path))
260260 ctxt.SetTheResultToCString (" folder not found" );
261261 else
262262 ctxt.SetTheResultToEmpty ();
@@ -1003,7 +1003,7 @@ void MCFilesExecPerformReadFor(MCExecContext& ctxt, IO_handle p_stream, int4 p_i
10031003 {
10041004 uint4 rsize = size - tsize;
10051005 uint4 fullsize = rsize;
1006- r_stat = MCS_readfixed (t_current.Chars () + tsize, sizeof ( char_t ), rsize, p_stream);
1006+ r_stat = MCS_readfixed (t_current.Chars () + tsize, rsize, p_stream); // ??? readall ???
10071007 tsize += rsize;
10081008 if (rsize < fullsize)
10091009 {
@@ -1221,7 +1221,7 @@ void MCFilesExecPerformReadUntil(MCExecContext& ctxt, IO_handle p_stream, int4 p
12211221 /* UNCHECKED */ t_buffer.Extend (tsize + BUFSIZ);
12221222 tsize += BUFSIZ;
12231223 }
1224- r_stat = MCS_readfixed (t_buffer.Chars () + size, sizeof ( char_t ), rsize, p_stream);
1224+ r_stat = MCS_readfixed (t_buffer.Chars () + size, rsize, p_stream); // ??? readall ???
12251225 size += rsize;
12261226 if (rsize < fullsize)
12271227 {
@@ -1289,7 +1289,7 @@ void MCFilesExecPerformReadUntil(MCExecContext& ctxt, IO_handle p_stream, int4 p
12891289 {
12901290 uint1 term;
12911291 uint4 nread = 1 ;
1292- if (MCS_readfixed (&term, sizeof ( char ), nread, p_stream) == IO_NORMAL)
1292+ if (MCS_readfixed (&term, nread, p_stream) == IO_NORMAL) // ??? readall ???
12931293 {
12941294 if (term != ' \n ' )
12951295 MCS_putback (term, p_stream);
@@ -1346,7 +1346,7 @@ void MCFilesExecPerformReadUntilBinary(MCExecContext& ctxt, IO_handle stream, in
13461346 /* UNCHECKED */ t_buffer.Extend (tsize + BUFSIZ);
13471347 tsize += BUFSIZ;
13481348 }
1349- r_stat = MCS_readfixed (t_buffer.Chars () + size, sizeof ( char_t ), rsize, stream);
1349+ r_stat = MCS_readfixed (t_buffer.Chars () + size, rsize, stream); // ??? readall ???
13501350 size += rsize;
13511351 if (rsize < fullsize)
13521352 {
0 commit comments