[haiku-commits] haiku: hrev47991 - src/apps/poorman

  • From: pulkomandy@xxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 10 Oct 2014 11:57:49 +0200 (CEST)

hrev47991 adds 1 changeset to branch 'master'
old head: d98a3e026c2c8e81509ab5bd163d766f0389a6f5
new head: e962d1552d61952ecc4b83fcc192ef17c5c58416
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=e962d15+%5Ed98a3e0

----------------------------------------------------------------------------

e962d15: Don't use unsafe strcpy.

                                 [ Adrien Destugues <pulkomandy@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev47991
Commit:      e962d1552d61952ecc4b83fcc192ef17c5c58416
URL:         http://cgit.haiku-os.org/haiku/commit/?id=e962d15
Author:      Adrien Destugues <pulkomandy@xxxxxxxxx>
Date:        Fri Oct 10 09:57:11 2014 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/apps/poorman/StatusSlider.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/apps/poorman/StatusSlider.cpp 
b/src/apps/poorman/StatusSlider.cpp
index 7a08d04..d8129ea 100644
--- a/src/apps/poorman/StatusSlider.cpp
+++ b/src/apps/poorman/StatusSlider.cpp
@@ -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;
 }


Other related posts:

  • » [haiku-commits] haiku: hrev47991 - src/apps/poorman - pulkomandy