utils: defensive programming
If caller passed the size of array not string length, it is possible to be accessed out of bounds.
Reorder conditions can prevent access invalid index of array.
Signed-off-by:
2xsec <dh48.jeong@samsung.com>
Showing
Please
register
or
sign in
to comment