--- a/tcpscript.c Wed Jul 04 21:12:09 2007 +0200
+++ b/tcpscript.c Wed Jul 04 21:15:57 2007 +0200
@@ -39,7 +39,7 @@
*/
/*
- * tcpscript - Modified from script - 2007 Lluis Batlle i Rossell
+ * tcpscript - Modified from 'script' - 2007 Lluis Batlle i Rossell
*/
#include <stdio.h>
#include <stdlib.h>
@@ -97,6 +97,7 @@
MAXCONNS = 10
};
static int accept_socket;
+const char version[] = "0.1";
static char *progname;
@@ -137,8 +138,9 @@
if (argc == 2) {
if (!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version")) {
- printf("%s, modification of 'script', by %s\n",
- progname, "Lluis Batlle i Rossell 2007");
+ printf("%s %s, modification of 'script' by %s\n",
+ progname, version,
+ "Lluis Batlle i Rossell 2007");
return 0;
}
}