jdk/src/java.base/share/native/libjli/java.c
changeset 43498 fd3e0590219e
parent 43330 6aa5f2938b75
child 45062 37ed4313c8c1
child 45004 ea3137042a61
child 46850 970a24772fe4
equal deleted inserted replaced
43497:1a2262d4395c 43498:fd3e0590219e
  1585     optLen = p - arg;
  1585     optLen = p - arg;
  1586     valueLen = JLI_StrLen(value);
  1586     valueLen = JLI_StrLen(value);
  1587     p = JLI_MemAlloc(optLen + valueLen + 1);
  1587     p = JLI_MemAlloc(optLen + valueLen + 1);
  1588     memcpy(p, arg, optLen);
  1588     memcpy(p, arg, optLen);
  1589     memcpy(p + optLen, value, valueLen);
  1589     memcpy(p + optLen, value, valueLen);
  1590     p[optLen + valueLen + 1] = '\0';
  1590     p[optLen + valueLen] = '\0';
  1591     return p;
  1591     return p;
  1592 }
  1592 }
  1593 
  1593 
  1594 /*
  1594 /*
  1595  * For tools, convert command line args thus:
  1595  * For tools, convert command line args thus: