Skip to content

Commit

Permalink
kappa: Use one_strlcpy for strncpy in configecho.
Browse files Browse the repository at this point in the history
  • Loading branch information
grahambell committed Feb 15, 2013
1 parent a3bbf31 commit d8fe355
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions applications/kappa/libkappa/configecho.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,7 @@ void HistoryKeyMap(int n, char* const text[], int* status) {
and setting p to point at the start of line. */

for (i = 0; i < n; i ++) {
strncpy(line, text[i], NDF__SZHIS);
line[NDF__SZHIS] = '\0';
one_strlcpy(line, text[i], NDF__SZHIS + 1, status);
p = line;

/* If a group is in progess, check that it continues, and if so
Expand Down

0 comments on commit d8fe355

Please sign in to comment.