[2106] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: Saber gripe: v2.0.4 (12/20/88 selene vax unix 2669 0)

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Sat Apr 22 18:26:24 1989

Date: Sat, 22 Apr 89 18:26:06 EDT
From: Ken Raeburn <raeburn@ATHENA.MIT.EDU>
To: <kzolot@ATHENA.MIT.EDU>
Cc: bugs@ATHENA.MIT.EDU
In-Reply-To: Ken Zolot's message of Mon, 3 Apr 89 11:32:14 EDT,
   From: <kzolot@ATHENA.MIT.EDU>
   Date: Mon, 3 Apr 89 11:32:14 EDT

   Saber null-terminates declared character strings, i.e.:
     1 ->  char junk[5];
     2 ->  junk[0]=='\0'
     (int) 1

   The C compiler does not null-terminate a declared string.

In C, I believe it is standard for top-level definitions (i.e., not
automatic within a function) to have zero-filled values if no
initializer is supplied.  I suspect this is the reason for saber's
behavior.

-- Ken

home help back first fref pref prev next nref lref last post