[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: removing asctime_r, ctime_r from the time_r module

From: Ben Pfaff
Subject: Re: removing asctime_r, ctime_r from the time_r module
Date: Fri, 10 Mar 2006 13:30:22 -0800
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

Paul Eggert <address@hidden> writes:

> I recently redisovered the fact that actime_r and ctime_r, like
> asctime and ctime, are unsafe functions in the same sense that gets is
> unsafe: they can overrun their output buffers and there's no simple
> way for the user to detect in advance whether this will happen.  So
> GNU apps shouldn't use these functions, and I propose that we remove
> these function emulations from gnulib, as follows.  Any objections?

It would be nice to invent safe replacements, e.g. nasctime(),
xasctime().  But I can understand that these functions might not
be important enough to bother.
"But hey, the fact that I have better taste than anybody else in the
 universe is just something I have to live with. It's not easy being
--Linus Torvalds

reply via email to

[Prev in Thread] Current Thread [Next in Thread]