Commit 6ced5d5e authored by jan.koester's avatar jan.koester
Browse files

it works

parent 997822b4
Loading
Loading
Loading
Loading
Loading
+6 −2
Changes for src/admin.cpp: 6 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -765,9 +765,13 @@ namespace authdb {
                        curformdat->Value.push_back('\0');

                        dodat.datasize=sizeof(int);
                        dodat.data=reinterpret_cast<char*>(new int);
                        dodat.data=new char[sizeof(int)];
                        int val=atoi(curformdat->Value.data());
                        memcpy(dodat.data,&val,sizeof(int));
                        std::copy(
                            reinterpret_cast<const char*>(&val),
                            reinterpret_cast<const char*>(&val)+dodat.datasize,
                            dodat.data
                        );
                        ddat.append(dodat);
                        delete dodat.data;
                    }else {