mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
Small fixes in genrevision
This commit is contained in:
parent
2c9eae7599
commit
49307f6a13
1 changed files with 2 additions and 2 deletions
|
|
@ -98,7 +98,7 @@ void extractDataFromGit(FILE* EntriesFile, std::string path, bool url, RawData&
|
|||
}
|
||||
else
|
||||
{
|
||||
int res = sscanf(url_str,"git://%s",url_buf);
|
||||
res = sscanf(url_str,"git://%s",url_buf);
|
||||
if(res)
|
||||
{
|
||||
host_str = strtok(url_buf,"/");
|
||||
|
|
@ -127,7 +127,7 @@ void extractDataFromGit(FILE* EntriesFile, std::string path, bool url, RawData&
|
|||
char buf2[200];
|
||||
char new_hash[200];
|
||||
int unix_time = 0;
|
||||
int res2 = sscanf(buf,"%s %s %s %s %i",buf2,new_hash,buf2,buf2,&unix_time,buf2);
|
||||
int res2 = sscanf(buf,"%s %s %s %s %i",buf2,new_hash,buf2,buf2,&unix_time);
|
||||
if(res2!=5)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue