From f418f6247f64093341081e07722e8cf2a09127b0 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 2 Jan 2002 16:57:30 +0000 Subject: [PATCH] use sizeof not strlen --- servers/slurpd/args.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slurpd/args.c b/servers/slurpd/args.c index 9c4df43346..95b936d8de 100644 --- a/servers/slurpd/args.c +++ b/servers/slurpd/args.c @@ -119,7 +119,7 @@ doargs( rflag++; break; case 't': /* dir to use for our copies of replogs */ - g->slurpd_rdir = (char *)malloc (strlen(optarg) + strlen("/replica") + 1); + g->slurpd_rdir = (char *)malloc (strlen(optarg) + sizeof("/replica")); sprintf(g->slurpd_rdir, "%s/replica", optarg); break; default: -- 2.39.5