Re: [cc65] two little bugs

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-08-20 16:35:58
On Thu, Aug 20, 2009 at 03:38:34PM +0200, Groepaz wrote:
> a) a negative case label gives me an "out of range error" ... funny enough,
> its in one of the files of the runtime lib =P

Can you tell me more about that? I'm able to compile the runtime library just
fine here.

> b) in asctime.c the temporary buffer to which the time string is copied is too
> small, which makes the function always fail :) the maximum length string is
> something like "Wednesday September ..1 00:00:00 1970", meaning the buffer
> should be 38 bytes atleast (and not 26 like now :))

The format for asctime is "Wed Jun 30 21:49:08 1993\n" which has a length of
25 characters. Plus the terminating zero makes 26 ...

The real problem is that one of the recent changes to the backend broke
mktime(). I will have a look at it - thanks for the report!

BTW: I've made quite a few changes in the last week. If anybody cares to run a
few tests and report the results I would be really glad.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Aug 20 16:37:55 2009

This archive was generated by hypermail 2.1.8 : 2009-08-20 16:37:57 CEST