summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2014-01-27 02:16:24 +0000
committerGreg Ercolano <erco@seriss.com>2014-01-27 02:16:24 +0000
commitebd1e106aa651579defb92b0a9a70cbba10e7061 (patch)
tree7809b35ac5da6a0241e930523a26e373580c49d1 /src
parentf6e1394df9be65fdd11937904150b3fbc227c93a (diff)
Fixes STR#3041, int -> size_t
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10086 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Native_File_Chooser_WIN32.cxx2
-rw-r--r--src/Fl_Tree.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Native_File_Chooser_WIN32.cxx b/src/Fl_Native_File_Chooser_WIN32.cxx
index cc8903028..2d4f581c9 100644
--- a/src/Fl_Native_File_Chooser_WIN32.cxx
+++ b/src/Fl_Native_File_Chooser_WIN32.cxx
@@ -710,7 +710,7 @@ void Fl_Native_File_Chooser::parse_filter(const char *in) {
// whatever input string is, our output won't be much longer in length..
// use double length just for safety.
- int slen = strlen(in);
+ size_t slen = strlen(in);
char *wildprefix = new char[slen*2]; wildprefix[0] = 0;
char *comp = new char[slen*2]; comp[0] = 0;
char *name = new char[slen*2]; name[0] = 0;
diff --git a/src/Fl_Tree.cxx b/src/Fl_Tree.cxx
index 711c9f217..c5cb0817e 100644
--- a/src/Fl_Tree.cxx
+++ b/src/Fl_Tree.cxx
@@ -38,7 +38,7 @@ static void scroll_cb(Fl_Widget*,void *data) {
// Caller must call free_path(arr).
//
static char **parse_path(const char *path) {
- int len = strlen(path);
+ size_t len = strlen(path);
char *cp = new char[(len+1)], *word = cp, *s = cp; // freed below or in free_path()
char **ap = new char*[(len+1)], **arr = ap; // overallocates arr[]
while (1) {