Re: [Vala] Beginners question about keyboard input



Oh, my bad then. Thanks for pointing it out.

2008/12/3 Thomas Chust <chust web de>:
David Keijser schrieb:
[...]
I second this. readline is not only better but gets() is not even safe
(see man 3 gets)
[...]

True. It should be noted, though, that Vala does *not* provide a binding
for gets(3), but only for fgets(3). The latter function does *not* share
the inherent buffer overflow risk of gets(3), especially not when used
via the Vala binding which ensures that the correct length of the target
buffer is passed in.

cu,
Thomas




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