Skip to content

Commit

Permalink
Don't use unsafe strcpy.
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkomandy committed Oct 10, 2014
1 parent d98a3e0 commit e962d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/poorman/StatusSlider.cpp
Expand Up @@ -25,6 +25,6 @@ StatusSlider::UpdateText() const
{
fStr.Truncate(0);
fFormat.Format(fStr, Value());
strcpy(fPattern, fStr.String());
strlcpy(fPattern, fStr.String(), sizeof(fPattern));
return fPattern;
}

0 comments on commit e962d15

Please sign in to comment.