diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2006-04-13 21:48:20 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2006-04-13 21:48:20 +0000 |
| commit | 13bfc3c5f7c84fa9d1abdc760808c00f7ca8e80a (patch) | |
| tree | e60cdaf0f980f6a16bba53b9613a240292e58d71 /src/dom/io/domstream.cpp | |
| parent | remove unneeded files during make dist already, defect:1416108 (diff) | |
| download | inkscape-13bfc3c5f7c84fa9d1abdc760808c00f7ca8e80a.tar.gz inkscape-13bfc3c5f7c84fa9d1abdc760808c00f7ca8e80a.zip | |
Made the format buffer larger and part of the class, not the stack.
(bzr r512)
Diffstat (limited to 'src/dom/io/domstream.cpp')
| -rw-r--r-- | src/dom/io/domstream.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/dom/io/domstream.cpp b/src/dom/io/domstream.cpp index 298a6df34..3ffba53fe 100644 --- a/src/dom/io/domstream.cpp +++ b/src/dom/io/domstream.cpp @@ -543,13 +543,10 @@ Writer &BasicWriter::printf(char *fmt, ...) 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; } /** |
