diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 4d4a2fd452..9e316d97c4 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2003-10-21 Andrew Cagney + + * callback.c (os_truncate): Call "truncate", and not "stat". + 2003-10-20 Andrew Cagney * sim-base.h: Replace "struct sec" with "struct bfd_section". diff --git a/sim/common/callback.c b/sim/common/callback.c index b22548182b..aa2cf076bd 100644 --- a/sim/common/callback.c +++ b/sim/common/callback.c @@ -420,7 +420,7 @@ os_truncate (p, file, len) const char *file; long len; { - return wrap (p, stat (file, len)); + return wrap (p, truncate (file, len)); } static int