random small shrinkage and elimination of statics
diff --git a/networking/isrv_identd.c b/networking/isrv_identd.c
index c230c7e..59daf99 100644
--- a/networking/isrv_identd.c
+++ b/networking/isrv_identd.c
@@ -19,7 +19,7 @@
char buf[64 - 2*sizeof(int)];
} identd_buf_t;
-static const char *bogouser = "nobody";
+#define bogouser bb_common_bufsiz1
static int new_peer(isrv_state_t *state, int fd)
{
@@ -108,8 +108,9 @@
int fd;
opt = getopt32(argc, argv, "fiwb:", &bind_address);
- if (optind < argc)
- bogouser = argv[optind];
+ strcpy(bogouser, "nobody");
+ if (argv[optind])
+ strncpy(bogouser, argv[optind], sizeof(bogouser));
/* Daemonize if no -f and no -i and no -w */
if (!(opt & OPT_fiw));