diff --git a/tools/update_compids.sh b/tools/update_compids.sh
index e82d3e4..be39f88 100755
--- a/tools/update_compids.sh
+++ b/tools/update_compids.sh
echo -e 'const char *bt_compidtostr(int compid)\n{\n\tswitch (compid) {' > new.c
-path=specifications/assigned-numbers/company-identifiers
+path=specifications/assigned-numbers/company-identifiers/
# Use "iconv -c" to strip unwanted unicode characters
curl --insecure https://www.bluetooth.com/$path | \
$scriptdir/tools/parse_companies.pl >> new.c