summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: db194d1)
raw | patch | inline | side by side (parent: db194d1)
author | ishmal <ishmal@users.sourceforge.net> | |
Thu, 13 Apr 2006 21:48:20 +0000 (21:48 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Thu, 13 Apr 2006 21:48:20 +0000 (21:48 +0000) |
src/dom/io/domstream.cpp | patch | blob | history | |
src/dom/io/domstream.h | patch | blob | history |
index 298a6df3428ffda455d52c0992640ee965f541ce..3ffba53feefab4f27719624cd18b41b7f6b0425f 100644 (file)
--- a/src/dom/io/domstream.cpp
+++ b/src/dom/io/domstream.cpp
va_list args;
va_start(args, fmt);
//replace this wish vsnprintf()
- char buf[256];
- vsnprintf(buf, 255, fmt, args);
+ vsnprintf(formatBuf, 2047, fmt, args);
va_end(args);
- if (buf) {
- writeString(buf);
- //free(buf);
- }
+ writeString(formatBuf);
+
return *this;
}
/**
diff --git a/src/dom/io/domstream.h b/src/dom/io/domstream.h
index 9904bb71b67de83877f9e6d07ce2b87a8385e620..05862f9449b2af99eba34aa7076af38de57c638a 100644 (file)
--- a/src/dom/io/domstream.h
+++ b/src/dom/io/domstream.h
* Authors:
* Bob Jamison
*
- * Copyright (C) 2005 Bob Jamison
+ * Copyright (C) 2006 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
BasicWriter()
{ destination = NULL; }
+ //Used for printf() or other things that might
+ //require formatting before sending down the stream
+ char formatBuf[2048];
+
private:
}; // class BasicWriter