INI: Fix warning about truncated string output
@@ -109,7 +109,7 @@ static int elektraKeyAppendLine (Key * target, const char * line)
keyGetString (target, buffer, keyGetValueSize (target));
strcat (buffer, "\n");
- strncat (buffer, line, strlen (line));
+ strncat (buffer, line, elektraStrLen (line));
keySetString (target, buffer);
elektraFree (buffer);
