diff --git a/src/common/hostlist.c b/src/common/hostlist.c index 521554ca496fc399dc2ec11aa070869239656ac8..f048a4b087270af784ef26c90e5e336df5556d61 100644 --- a/src/common/hostlist.c +++ b/src/common/hostlist.c @@ -574,11 +574,8 @@ static hostname_t hostname_create(const char *hostname) hn->num = 0; hn->prefix = NULL; hn->suffix = NULL; -#ifdef HAVE_BG - if (idx == (strlen(hostname) - 4)) { -#else + if (idx == (strlen(hostname) - 1)) { -#endif if ((hn->prefix = strdup(hostname)) == NULL) { hostname_destroy(hn); out_of_memory("hostname prefix create");