Change-Id: If1b4102aabdb428771b2afc958af259cda8fb3b7
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
tp_for_each_touch(tp, t) {
if (i >= tp->nfingers_down)
break;
- snprintf(&buf[strlen(buf)], sizeof(buf),
+ snprintf(&buf[strlen(buf)], sizeof(buf)-1,
"slot %zd: %04d/%04d p%03d %s |",
i++,
t->point.x,
str = zalloc(slen + 1); /* trailing \0 */
for (s = strv; *s; s++) {
- strncat(str, slen, *s);
+ strncat(str, *s, strlen(*s));
--count;
if (count > 0)
- strcat(str, joiner);
+ strncat(str, joiner, strlen(joiner));
}
return str;