From c5bf0eb2d41b437999394486dc4d7eace5dc0c27 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Sun, 24 Jan 2010 11:32:03 +1000 Subject: Bug fixes, documentation updates jimsh - retry on EINTR from fgets() Fix 0 -> NULL for 64 bit systems Fix overlapping memcpy Fix jim array dereferencing bug *: Counting of parentheses was incorrect with nested array references *: The result for array dereference wasn't being used properly Add os.uptime command Documentation: autogenerated command index Fix gets when last line has no newline --- jim-bio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jim-bio.c') diff --git a/jim-bio.c b/jim-bio.c index 290093b..38dba2b 100644 --- a/jim-bio.c +++ b/jim-bio.c @@ -150,14 +150,14 @@ static int bio_cmd_copy(Jim_Interp *interp, int argc, Jim_Obj *const *argv) if (ferror(infh)) { Jim_SetResultString(interp, "", 0); - Jim_AppendStrings(interp, Jim_GetResult(interp), "error reading \"", Jim_GetString(argv[0], NULL), "\": ", strerror(errno), 0); + Jim_AppendStrings(interp, Jim_GetResult(interp), "error reading \"", Jim_GetString(argv[0], NULL), "\": ", strerror(errno), NULL); clearerr(infh); return JIM_ERR; } if (ferror(outfh)) { Jim_SetResultString(interp, "", 0); - Jim_AppendStrings(interp, Jim_GetResult(interp), "error writing \"", Jim_GetString(argv[1], NULL), "\": ", strerror(errno), 0); + Jim_AppendStrings(interp, Jim_GetResult(interp), "error writing \"", Jim_GetString(argv[1], NULL), "\": ", strerror(errno), NULL); clearerr(outfh); return JIM_ERR; } -- cgit v1.1