~lastrosade/jsthttpd

9d69a2d5e8eba5fdcf134785c8f645b946422b40 — Jean-Philippe Ouellet 7 years ago f263bb1
extras/htpasswd.c: remove unused argument in fprintf

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
1 files changed, 2 insertions(+), 4 deletions(-)

M extras/htpasswd.c
M extras/htpasswd.c => extras/htpasswd.c +2 -4
@@ 185,8 185,7 @@ int main(int argc, char *argv[]) {
	    exit(1);
	}
	if (strlen(argv[3]) > (sizeof(user) - 1)) {
	    fprintf(stderr, "%s: username is too long\n", argv[0],
		sizeof(user) - 1);
	    fprintf(stderr, "%s: username is too long\n", argv[0]);
	    exit(1);
	}
	if ((strchr(argv[3], ':')) != NULL) {


@@ 216,8 215,7 @@ int main(int argc, char *argv[]) {
	exit(1);
    }
    if (strlen(argv[2]) > (sizeof(user) - 1)) {
	fprintf(stderr, "%s: username is too long\n", argv[0],
		sizeof(user) - 1);
	fprintf(stderr, "%s: username is too long\n", argv[0]);
	exit(1);
    }
    if ((strchr(argv[2], ':')) != NULL) {