dtsr: Coverity fixes for string buffer issues

This commit is contained in:
Peter Howkins
2018-04-24 03:03:06 +01:00
parent 3cf92f3741
commit a1fb026d86
5 changed files with 6 additions and 6 deletions

View File

@@ -795,7 +795,7 @@ void process_profile ()
bad_profile = TRUE;
continue;
}
strcpy (field_current->text, tok);
snprintf(field_current->text, sizeof(field_current->text), "%s", tok);
field_current->text_length = strlen (field_current->text);
/*-- get offset --*/