Cleanup of long existing mess: 1) snprintf(buf, sizeof(buf), xx); strncpy(val, buf, maxlen-strlen(val)) -> snprintf(val, maxlen, xx) 2) strncpy(val, xx, maxlen - strlen(val)) -> strncpy(val, xx, maxlen)
Cleanup of long existing mess:
1) snprintf(buf, sizeof(buf), xx); strncpy(val, buf, maxlen-strlen(val)) -> snprintf(val, maxlen, xx)
2) strncpy(val, xx, maxlen - strlen(val)) -> strncpy(val, xx, maxlen)

wang-bin/libexif-port,wang-bin/libexif-port