1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Index: ctemplate-2.2/src/ctemplate/template_string.h.in
===================================================================
--- ctemplate-2.2.orig/src/ctemplate/template_string.h.in 2012-04-19 07:49:56.000000000 +1000
+++ ctemplate-2.2/src/ctemplate/template_string.h.in 2012-06-20 22:52:46.000000000 +1000
@@ -337,7 +337,7 @@
// Don't use this. This is used only in auto-generated .varnames.h files.
#define STS_INIT_WITH_HASH(name, str, hash) \
- { { str, sizeof(""str"")-1, hash } }; \
+ { { str, sizeof("" str "")-1, hash } }; \
namespace ctemplate_sts_init { \
static const @ac_google_namespace@::StaticTemplateStringInitializer name##_init(&name); \
}
Index: ctemplate-2.2/src/template_dictionary.cc
===================================================================
--- ctemplate-2.2.orig/src/template_dictionary.cc 2012-04-19 07:49:56.000000000 +1000
+++ ctemplate-2.2/src/template_dictionary.cc 2012-06-20 22:53:11.000000000 +1000
@@ -861,7 +861,7 @@
string GetDictNum(size_t index, size_t size) const {
char buf[64]; // big enough for two ints
- snprintf(buf, sizeof(buf), "%" PRIuS" of %" PRIuS, index, size);
+ snprintf(buf, sizeof(buf), "%" PRIuS " of %" PRIuS, index, size);
return buf;
}
|