From: Pawel Kurowski Date: Fri, 16 Jun 2017 18:36:00 +0000 (+0200) Subject: Fix wrong strncpy usage X-Git-Tag: accepted/tizen/unified/20170630.083315^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fat-spi2-core.git;a=commitdiff_plain;h=a38a10da4b100564777fd2e6a8cca9e08ce44d55 Fix wrong strncpy usage Change-Id: Id4ee0975ccbce4043ded7d00f7238e057db26f3b --- diff --git a/test/at_spi2_tool.c b/test/at_spi2_tool.c index e9b3d68..95c726c 100644 --- a/test/at_spi2_tool.c +++ b/test/at_spi2_tool.c @@ -341,7 +341,7 @@ static void _test_atspi_parent_child_relation(AtspiAccessible *obj, AtspiAccessi char parent_status[NUMBER_WIDTH]; if (parent == NULL) - strncpy(parent_status, NUMBER_WIDTH, "_"); + strncpy(parent_status, "_", NUMBER_WIDTH); else snprintf(parent_status, NUMBER_WIDTH, "%d", parent_index);