summaryrefslogtreecommitdiffstats
path: root/mbbsd/friend.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/friend.c')
-rw-r--r--mbbsd/friend.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mbbsd/friend.c b/mbbsd/friend.c
index 7d7d3720..c73932af 100644
--- a/mbbsd/friend.c
+++ b/mbbsd/friend.c
@@ -188,12 +188,10 @@ delete_friend_from_file(const char *file, const char *string, int case_sensitiv
sprintf(fnew, "%s.%3.3X", file, (unsigned int)(random() & 0xFFF));
if ((fp = fopen(file, "r")) && (nfp = fopen(fnew, "w"))) {
- int length = strlen(string);
-
while (fgets(genbuf, sizeof(genbuf), fp))
if ((genbuf[0] > ' ')) {
char buf[32];
- sscanf(genbuf, " %s", &buf);
+ sscanf(genbuf, " %s", buf);
if (((case_sensitive && strcmp(buf, string)) ||
(!case_sensitive && strcasecmp(buf, string))))
fputs(genbuf, nfp);