Fix incorrect handling of snprintf return value.
am: 82d84897b1

* commit '82d84897b1f17ccda1e32098af11a25bd9f6127a':
  Fix incorrect handling of snprintf return value.