Re: [AD] 3 patches regarding unicode and buffer overfows (mostly) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> Maybe return -1 (overflow), 0 (cancel), 1 (ok)? But people might be
> checking file_select() == TRUE (which == -1), and I definitely don't
> want `file_select' and `file_select_ex' to return different values.
> -1 (ok), 0 (cancel), 1 (overflow) is also possible, but feels
> strange to me.
Maybe can we make use of the libc errno variable ?
The file selector could return ENAMETOOLONG when the path buffer overflowed.
--
Eric Botcazou
ebotcazou@xxxxxxxxxx