handle configuration variables longer than 30 characters long

BUG=
R=bsalomon@google.com, halcanary@google.com, reed@google.com

Review URL: https://codereview.chromium.org/26206003

git-svn-id: http://skia.googlecode.com/svn/trunk/include@11757 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/utils/SkRTConf.h b/utils/SkRTConf.h
index 1dc41c9..91993d8 100644
--- a/utils/SkRTConf.h
+++ b/utils/SkRTConf.h
@@ -111,10 +111,18 @@
 template<typename T>
 void SkRTConf<T>::print(SkWStream *o) const {
     char outline[200]; // should be ok because we specify a max. width for everything here.
-
-    sprintf(outline, "%-30.30s", getName());
-    doPrint(&(outline[30]));
-    sprintf(&(outline[60]), " %.128s", fDescription.c_str());
+    char *outptr;
+    if (strlen(getName()) >= 30) {
+        o->writeText(getName());
+        o->writeText(" ");
+        outptr = &(outline[0]);
+    } else {
+        sprintf(outline, "%-30.30s", getName());
+        outptr = &(outline[30]);
+    }
+    
+    doPrint(outptr);
+    sprintf(outptr+30, " %.128s", fDescription.c_str());
     for (size_t i = strlen(outline); i --> 0 && ' ' == outline[i];) {
         outline[i] = '\0';
     }