summaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/string.cpp b/src/string.cpp
index cc96c5e..7ec0bec 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -34,7 +34,7 @@ CompString compPrintf (const char *format, ...)
CompString rv;
va_start (ap, format);
- rv = compPrintf(format, ap);
+ rv = compPrintf (format, ap);
va_end (ap);
return rv;
@@ -74,13 +74,14 @@ CompString compPrintf (const char *format, va_list ap)
delete [] str;
str = new char[size];
-
+
if (!str)
{
return CompString ("");
}
}
- CompString rv(str);
+
+ CompString rv (str);
delete [] str;
return rv;
}