Skip to content

Commit

Permalink
A package name must have more than three characters
Browse files Browse the repository at this point in the history
  • Loading branch information
caryr committed Jun 17, 2024
1 parent 0937de3 commit adb5731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vvp/vpi_signal.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001-2023 Stephen Williams ([email protected])
* Copyright (c) 2001-2024 Stephen Williams ([email protected])
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
Expand Down Expand Up @@ -108,7 +108,7 @@ char *generic_get_str(int code, vpiHandle ref, const char *name, const char *ind
if (code == vpiFullName) {
bn = strdup(vpi_get_str(code,ref));
size_t bn_len = strlen(bn);
is_bn_a_pkg = bn[bn_len-1] == ':' && bn[bn_len-2] == ':';
is_bn_a_pkg = (bn_len > 3) && (bn[bn_len-1] == ':') && (bn[bn_len-2] == ':');
len += bn_len;
if (! is_bn_a_pkg) len += 1; // include space for "." separator
}
Expand Down

0 comments on commit adb5731

Please sign in to comment.