Re: [Vala] Beginners question about keyboard input

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.


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