Libgourou

Libgourou Commit Details

Date:2023-01-05 21:27:50 (8 months 17 days ago)
Author:Grégory Soutadé
Branch:master
Commit:937c27fc2373cd5649d69f72993ffeb342f5ef32
Parents: 34216d1b6e38a2119891a446cd08889380bd8a59
Message:Fix some warnings

Changes:
Msrc/libgourou.cpp (1 diff)
Mutils/utils_common.cpp (2 diffs)

File differences

src/libgourou.cpp
940940
941941
942942
943
943
944944
945945
946946
/* In adobekey.py, we get base64 decoded data [26:] */
ret = write(fd, privateLicenseKey.data()+26, privateLicenseKey.length()-26);
close(fd);
if (ret != privateLicenseKey.length()-26)
if (ret != (int)(privateLicenseKey.length()-26))
{
EXCEPTION(gourou::GOUROU_FILE_ERROR, "Error writing " << path);
}
utils/utils_common.cpp
9898
9999
100100
101
101
102102
103103
104104
......
121121
122122
123123
124
124
125
125126
126127
127128
128
129
129130
130131
131132
void fileCopy(const char* in, const char* out)
{
char buffer[4096];
char buffer[4096], *_buffer;
int ret, ret2, fdIn, fdOut;
fdIn = open(in, O_RDONLY);
break;
do
{
ret2 = ::write(fdOut, buffer, ret);
_buffer = buffer;
ret2 = ::write(fdOut, _buffer, ret);
if (ret2 >= 0)
{
ret -= ret2;
buffer += ret2;
_buffer += ret2;
}
else
{

Archive Download the corresponding diff file