diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2004-10-26 20:03:50 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2004-10-26 20:03:50 +0000 |
commit | c752987457f50c1adf5051e1fd8167a5637f1e34 (patch) | |
tree | e78349513f1c0c7f37bd6d96935f90d9c5257e15 /externals/grill/flext/source/flatom_pr.cpp | |
parent | e44cd51e389696bc871ece7d9ea08d10a683382e (diff) |
""
svn path=/trunk/; revision=2169
Diffstat (limited to 'externals/grill/flext/source/flatom_pr.cpp')
-rw-r--r-- | externals/grill/flext/source/flatom_pr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/externals/grill/flext/source/flatom_pr.cpp b/externals/grill/flext/source/flatom_pr.cpp index 5b15648a..cfc69266 100644 --- a/externals/grill/flext/source/flatom_pr.cpp +++ b/externals/grill/flext/source/flatom_pr.cpp @@ -23,7 +23,7 @@ WARRANTIES, see the file, "license.txt," in this distribution. #endif // \TODO take bufsz into account! -bool flext::PrintAtom(const t_atom &a,char *buf,int bufsz) +bool flext::PrintAtom(const t_atom &a,char *buf,size_t bufsz) { bool ok = true; if(IsFloat(a)) { @@ -37,7 +37,7 @@ bool flext::PrintAtom(const t_atom &a,char *buf,int bufsz) *buf = 0; else { const char *c = GetString(a); - int len = strlen(c); + size_t len = strlen(c); if(len < bufsz) { memcpy(buf,c,len); buf[len] = 0; ok = true; @@ -70,14 +70,14 @@ bool flext::PrintAtom(const t_atom &a,char *buf,int bufsz) return ok; } -bool flext::PrintList(int argc,const t_atom *argv,char *buf,int bufsz) +bool flext::PrintList(int argc,const t_atom *argv,char *buf,size_t bufsz) { bool ok = true; for(int i = 0; ok && i < argc && bufsz > 0; ++i) { if(i) { *(buf++) = ' '; --bufsz; } // prepend space if(PrintAtom(argv[i],buf,bufsz)) { - int len = strlen(buf); + size_t len = strlen(buf); buf += len,bufsz -= len; } else |