diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-11 12:44:23 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-11 12:44:23 +0300 |
commit | 05da7a15de40291b2135d8e089e24ec20babb065 (patch) | |
tree | 4be6dad7f3cb2a5ab7a31f9a5123893ed72cf20d /plugins/CloudFile/src/Services/google_service.h | |
parent | bb583302ec9f478eebd3b57d06a476a5d82730c6 (diff) |
CloudFile: war agains static buffers & buffer overruns
Diffstat (limited to 'plugins/CloudFile/src/Services/google_service.h')
-rw-r--r-- | plugins/CloudFile/src/Services/google_service.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/CloudFile/src/Services/google_service.h b/plugins/CloudFile/src/Services/google_service.h index cef71c8a45..3bb4466e57 100644 --- a/plugins/CloudFile/src/Services/google_service.h +++ b/plugins/CloudFile/src/Services/google_service.h @@ -9,11 +9,11 @@ private: void HandleJsonError(JSONNode &node) override; - void UploadFile(const char *parentId, const char *name, const char *data, size_t size, char *fileId); - void CreateUploadSession(const char *parentId, const char *name, char *uploadUri); - void UploadFileChunk(const char *uploadUri, const char *chunk, size_t chunkSize, uint64_t offset, uint64_t fileSize, char *fileId); - void CreateFolder(const char *path, char *folderId); - void CreateSharedLink(const char *itemId, char *url); + void UploadFile(const char *parentId, const char *name, const char *data, size_t size, CMStringA &fileId); + void CreateUploadSession(const char *parentId, const char *name, CMStringA &uploadUri); + void UploadFileChunk(const char *uploadUri, const char *chunk, size_t chunkSize, uint64_t offset, uint64_t fileSize, CMStringA &fileId); + void CreateFolder(const char *path, CMStringA &folderId); + void CreateSharedLink(const char *itemId, CMStringA &url); public: CGDriveService(const char *protoName, const wchar_t *userName); |