diff options
author | pixel <pixel> | 2002-12-26 02:01:38 +0000 |
---|---|---|
committer | pixel <pixel> | 2002-12-26 02:01:38 +0000 |
commit | 097d47e972be08ed711177e241ecbb9b3f053ecc (patch) | |
tree | ece6b69c796be050138b3cb43093d17baa587175 /lib | |
parent | 36c694c55de0f63f16c7d1a277ecf7bde14afef2 (diff) |
Still some VC6++ port...
Diffstat (limited to 'lib')
-rw-r--r-- | lib/glfont.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/glfont.cc b/lib/glfont.cc index 2c888ab..b00f470 100644 --- a/lib/glfont.cc +++ b/lib/glfont.cc @@ -156,7 +156,7 @@ mogltk::font::~font() { delete fonttex[i]; } - free((void *) fonttex); + free((void *&) fonttex); free(sizes); } @@ -252,7 +252,11 @@ int mogltk::font::printf(const String & m, ...) { int r; va_start(ap, m); +#ifdef HAVE_VSNPRINTF r = vsnprintf(buffer, STRBUFSIZ, m.to_charp(), ap); +#else + r = vsprintf(buffer, m.to_charp(), ap); +#endif va_end(ap); for (p = buffer; *p; p++) { |