Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
bin: Fix bug with : vs - in package name
Browse files Browse the repository at this point in the history
  • Loading branch information
wltjr committed Jan 25, 2018
1 parent 5d57d00 commit 126db27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/env_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,14 @@ void jemPrintPackageClasspath(const char *name) {
char *pkgs_str = calloc(strlen(name)+1,sizeof(char));
char *cursor = pkgs_str;
char *classpath = NULL;
int pkg_name_len;
int i;
memcpy(cursor,name,strlen(name));
while((pkg_name = strsep(&cursor,","))) {
pkg_name_len = strlen(pkg_name);
for( i=0; i<pkg_name_len; i++)
if(pkg_name[i] == ':')
pkg_name[i] = '-';
package_found = false;
struct jem_pkg *pkg = jemPkgLoadPackage(pkg_name);
if(pkg) {
Expand Down

0 comments on commit 126db27

Please sign in to comment.