• Russ Cox's avatar
    change string([]byte) to pass array, rather than &a[0], · 5383e28e
    Russ Cox authored
    to string convert.  if the byte array has length 0,
    the computation of &a[0] throws an index bounds error.
    
    for fixed size arrays, this ends up invoking arrays2d
    unnecessarily, but it works.
    
    R=ken
    DELTA=304  (44 added, 28 deleted, 232 changed)
    OCL=15674
    CL=15678
    5383e28e
Name
Last commit
Last update
..
Makefile Loading commit data...
amd64_darwin.h Loading commit data...
amd64_linux.h Loading commit data...
array.c Loading commit data...
chan.c Loading commit data...
iface.c Loading commit data...
map.c Loading commit data...
print.c Loading commit data...
proc.c Loading commit data...
rt0_amd64.s Loading commit data...
rt0_amd64_darwin.s Loading commit data...
rt0_amd64_linux.s Loading commit data...
rt1_amd64_darwin.c Loading commit data...
rt1_amd64_linux.c Loading commit data...
rt2_amd64.c Loading commit data...
rune.c Loading commit data...
runtime.c Loading commit data...
runtime.h Loading commit data...
signals.h Loading commit data...
string.c Loading commit data...
sys_amd64_darwin.s Loading commit data...
sys_amd64_linux.s Loading commit data...
sys_file.c Loading commit data...
sys_types.h Loading commit data...