Author: adrian.chadd
Date: Mon Feb  2 10:55:14 2009
New Revision: 13783

Modified:
    branches/LUSCA_HEAD/src/HttpHdrCc.c

Log:
strBuf() -> strBuf2() / strLen2()



Modified: branches/LUSCA_HEAD/src/HttpHdrCc.c
==============================================================================
--- branches/LUSCA_HEAD/src/HttpHdrCc.c (original)
+++ branches/LUSCA_HEAD/src/HttpHdrCc.c Mon Feb  2 10:55:14 2009
@@ -73,8 +73,9 @@
      extern const HttpHeaderStat *dump_stat;   /* argh! */
      const int id = (int) val;
      const int valid_id = id >= 0 && id < CC_ENUM_END;
-    const char *name = valid_id ?  
strBuf(CcFieldsInfo[id].name) : "INVALID";
+    const char *name = valid_id ?  
strBuf2(CcFieldsInfo[id].name) : "INVALID";
+    int name_len = valid_id ? strLen2(CcFieldsInfo[id].name) : 7;
      if (count || valid_id)
-       storeAppendPrintf(sentry, "%2d\t %-20s\t %5d\t %6.2f\n",
-           id, name, count, xdiv(count, dump_stat->ccParsedCount));
+       storeAppendPrintf(sentry, "%2d\t %-20.*s\t %5d\t %6.2f\n",
+           id, name_len, name, count, xdiv(count, dump_stat->ccParsedCount));
  }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to