# # patch "schema_migration.cc" # from [1f99bdf41ad3ac4c1b8c1762f185235e6e8e384e] # to [38c6a6d8a82751cc80ff017b0a7f863d0b50eac6] # ======================================================================== --- schema_migration.cc 1f99bdf41ad3ac4c1b8c1762f185235e6e8e384e +++ schema_migration.cc 38c6a6d8a82751cc80ff017b0a7f863d0b50eac6 @@ -42,14 +42,13 @@ static string lowercase(string const & in) { - size_t const sz = in.size(); - char *buf=new char[sz]; + I(40==in.size()); + const int sz=40; + char buf[sz]; in.copy(buf, sz); locale loc; use_facet< ctype >(loc).tolower(buf, buf+sz); - string tmp= string(buf,sz); - delete[] buf; - return tmp; + return string(buf,sz); } static void