diff --git a/src/nwbind.c b/src/nwbind.c index c08e90e..5bc5460 100644 --- a/src/nwbind.c +++ b/src/nwbind.c @@ -1,7 +1,5 @@ /* nwbind.c */ -#define REVISION_DATE "14-Jun-03" // (M@K) - /* NCP Bindery SUB-SERVER */ /* authentification and some message and queue handling */ @@ -1752,15 +1750,21 @@ static void handle_fxx(int gelen, int func) case 0xc9 : { /* GET FILE SERVER DESCRIPTION STRINGs */ char *company = "KoanSoftware.com"; char *revision = "Version %d.%d.pl%d [KOAN]"; // (M@K) - char *revision_date = REVISION_DATE; + char revision_date[64]; char *copyright = "(C)M.Stover"; int k=strlen(company)+1; int l; + snprintf(revision_date, sizeof(revision_date), + "mars-nwe-%d.%d.pl%d", + _VERS_H_, _VERS_L_, _VERS_P_); + revision_date[sizeof(revision_date)-1] = '\0'; + memset(responsedata, 0, 512); strcpy(responsedata, company); l = 1 + sprintf(responsedata+k, revision, _VERS_H_, _VERS_L_, _VERS_P_ ); + k += l; strcpy(responsedata+k, revision_date); k += (strlen(revision_date)+1); strcpy(responsedata+k, copyright);