diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-01 00:03:36 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-01 00:03:36 +0000 |
| commit | 45f82821351dd720b198374ea6914d7119a1eb8d (patch) | |
| tree | cf7a76a02440e3b045c93bce3211619dae641342 /test | |
| parent | 288f3e8c7a7abdd34fd2b0243e41c8fec36cc76f (diff) | |
Don't try to use itoa(), which isn't available on most systems. Instead,
use sprintf().
getUserdataPath() call in test/preferences.cxx reverted to old 1 argument
version. We only provide the 2-arg version (pointer + length) to enforce
safe programming.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2148 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
| -rw-r--r-- | test/preferences.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/preferences.cxx b/test/preferences.cxx index 237422f78..63cb11a6e 100644 --- a/test/preferences.cxx +++ b/test/preferences.cxx @@ -172,7 +172,7 @@ double doubleValue; Fl_Preferences app( Fl_Preferences::USER, "fltk.org", "test/preferences" ); char path[ FL_PATH_MAX ]; - app.getUserdataPath( path ); + app.getUserdataPath( path, sizeof(path) ); Fl_Preferences bed( app, "Bed" ); bed.get( "alarm", buffer, "8:00", 80 ); |
