Changed to avoid warnings in valgrind about invalid reads.
The manpages seemed to indicate that the previous code was correct so I'm not sure if this was a bug or not. It's been in dlib for years without causing trouble though.
Showing
Please
register
or
sign in
to comment