X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=XMLTree.h;h=b6aa410e46a7d6adb8baeb659d91a63c92d24ae1;hb=ac53090f1525b3ef9cbde0b51da5fbb238a06744;hp=c6542a0766a7ce0e00023d9d32d6ade19d2621d1;hpb=b6f779e236950176bab71fce980ac1685e8661c0;p=SXSI%2FXMLTree.git diff --git a/XMLTree.h b/XMLTree.h index c6542a0..b6aa410 100644 --- a/XMLTree.h +++ b/XMLTree.h @@ -401,7 +401,8 @@ public: } uchar* GetCachedText(DocID d) { - uchar * str = (uchar*) calloc(sizeof(char),(CachedText.at(d).size() + 1)); + uchar * str = (uchar*) calloc(sizeof(char),(CachedText.at(d).size() + 1)); + strcpy((char*) str,(const char*) CachedText.at(d).c_str()); return (uchar*) (str); }