Commit f191f176 authored by rswindell's avatar rswindell
Browse files

Improved sscanf-parsing of CVS revision string.

parent 41891f40
......@@ -689,7 +689,7 @@ int main(int argc, char **argv)
long l;
file_t f;
sscanf("$Revision$" + 11, "%s", revision);
sscanf("$Revision$", "%*s %s", revision);
fprintf(stderr,"\nADDFILES v%s-%s (rev %s) - Adds Files to Synchronet "
"Filebase\n"
......
......@@ -126,7 +126,7 @@ int main(int argc, char **argv)
time_t uld,dld;
FILE *in,*out=NULL;
sscanf("$Revision$" + 11, "%s", revision);
sscanf("$Revision$", "%*s %s", revision);
fprintf(stderr,"\nFILELIST v%s-%s (rev %s) - Generate Synchronet File "
"Directory Lists\n"
......
......@@ -4361,7 +4361,7 @@ const char* DLLCALL ftp_ver(void)
DESCRIBE_COMPILER(compiler);
sscanf("$Revision$" + 11, "%s", revision);
sscanf("$Revision$", "%*s %s", revision);
sprintf(ver,"%s %s%s "
"Compiled %s %s with %s"
......
......@@ -3117,7 +3117,7 @@ const char* DLLCALL mail_ver(void)
DESCRIBE_COMPILER(compiler);
sscanf("$Revision$" + 11, "%s", revision);
sscanf("$Revision$", "%*s %s", revision);
sprintf(ver,"Synchronet Mail Server %s%s SMBLIB %s "
"Compiled %s %s with %s"
......
......@@ -87,7 +87,7 @@ int main(int argc, char **argv)
time_t now;
user_t user;
sscanf("$Revision$" + 11, "%s", revision);
sscanf("$Revision$", "%*s %s", revision);
fprintf(stderr,"\nMAKEUSER v%s-%s - Adds User to Synchronet User Database\n"
,revision
......
......@@ -4036,7 +4036,7 @@ int main(int argc, char **argv)
memset(&msg_path,0,sizeof(addrlist_t));
memset(&fakearea,0,sizeof(areasbbs_t));
sscanf("$Revision$" + 11, "%s", revision);
sscanf("$Revision$", "%*s %s", revision);
DESCRIBE_COMPILER(compiler);
......
......@@ -1217,7 +1217,7 @@ const char* DLLCALL services_ver(void)
DESCRIBE_COMPILER(compiler);
sscanf("$Revision$" + 11, "%s", revision);
sscanf("$Revision$", "%*s %s", revision);
sprintf(ver,"Synchronet Services %s%s "
"Compiled %s %s with %s"
......
......@@ -1285,7 +1285,7 @@ int main(int argc, char **argv)
setvbuf(stdout,0,_IONBF,0);
sscanf("$Revision$" + 11, "%s", revision);
sscanf("$Revision$", "%*s %s", revision);
DESCRIBE_COMPILER(compiler);
......
......@@ -2026,7 +2026,7 @@ const char* DLLCALL web_ver(void)
DESCRIBE_COMPILER(compiler);
sscanf("$Revision$" + 11, "%s", revision);
sscanf("$Revision$", "%*s %s", revision);
sprintf(ver,"%s %s%s "
"Compiled %s %s with %s"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment