Marco wrote:
Mike Frysinger <[EMAIL PROTECTED]> writes:


On Wednesday 20 October 2004 07:15 pm, Michael Jennings wrote:

On Wednesday, 20 October 2004, at 14:53:05 (-0700),

E CVS List wrote:

-   char                s[1024], *names[ENLIGHTENMENT_CONF_NUM_DESKTOPS];
+   char                s[1024], *names[Conf.desks.num];

I don't believe this is legal. You'll need to use malloc().

Damn! Didn't think anybody was looking :) Yeah, I should do it right.
It works with my gcc though.

or better yet, calloc()

I don't think there is much point in using calloc when every item must
be set to something non-zero anyway.

even better, alloca :)

E16 does not use alloca. I've seen too many portability problems with
that.

/Kim


------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ enlightenment-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to