From: Alan T. DeKok Date: Sun, 17 Feb 2013 20:12:32 +0000 (-0500) Subject: Use sizeof instead of strlen X-Git-Tag: release_3_0_0_beta1~1070 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6f6cec324ec9d4f7e95b41b52012f602a8f8c8d;p=thirdparty%2Ffreeradius-server.git Use sizeof instead of strlen --- diff --git a/scripts/jlibtool.c b/scripts/jlibtool.c index ac4251c4650..6ffaf4b7c4a 100644 --- a/scripts/jlibtool.c +++ b/scripts/jlibtool.c @@ -2353,7 +2353,7 @@ static void cleanup_tmp_dir(const char *dirname) if (dir == NULL) return; - if ((strlen(dirname) + 1 + strlen(entry->d_name)) >= sizeof(fullname)) { + if ((strlen(dirname) + 1 + sizeof(entry->d_name)) >= sizeof(fullname)) { fprintf(stderr, "Dirname too long out of buffer space"); return; }