summaryrefslogtreecommitdiffstats
path: root/common/bbs
diff options
context:
space:
mode:
Diffstat (limited to 'common/bbs')
-rw-r--r--common/bbs/Makefile1
-rw-r--r--common/bbs/string.c13
2 files changed, 14 insertions, 0 deletions
diff --git a/common/bbs/Makefile b/common/bbs/Makefile
index ce53c79a..e3aae6e0 100644
--- a/common/bbs/Makefile
+++ b/common/bbs/Makefile
@@ -5,6 +5,7 @@ SRCROOT= ../..
CFLAGS+= -I$(SRCROOT)/include
OBJS= log.o file.o money.o names.o path.o string.o
+# record.o
TARGET= libcmbbs.a
diff --git a/common/bbs/string.c b/common/bbs/string.c
index 8b137891..60b03b37 100644
--- a/common/bbs/string.c
+++ b/common/bbs/string.c
@@ -1 +1,14 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include "cmbbs.h"
+void obfuscate_ipstr(char *s)
+{
+ s = strrchr(s, '.');
+ if (!s) return;
+ if (!*++s) return;
+ // s points to a.'b'
+ *s++ = '*';
+ *s = 0;
+}