diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-04-19 23:51:18 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-04-19 23:51:18 +0200 |
commit | 313216e6fb269a0a8bd04e44547250a31b83c2df (patch) | |
tree | 128e20f1f6fdf65cb594c8f01f6396da83391084 /sys/src/cmd/qc | |
parent | b43720e3f75c02ea7ddfea4ac46b37839498db35 (diff) |
?c: get rid of sprint(), strcpy() and strcat()/strncat(), cleanup
Diffstat (limited to 'sys/src/cmd/qc')
-rw-r--r-- | sys/src/cmd/qc/mul.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/cmd/qc/mul.c b/sys/src/cmd/qc/mul.c index 6918c1fed..877b6719d 100644 --- a/sys/src/cmd/qc/mul.c +++ b/sys/src/cmd/qc/mul.c @@ -117,8 +117,7 @@ no: if(g) { m1 = mulcon0(n, v); if(m1) { - strcpy(m->code, m1->code); - sprint(strchr(m->code, 0), "%c0", g+'a'); + snprint(m->code, sizeof(m->code), "%s%c0", m1->code, g+'a'); return m; } } |