瀏覽代碼

For loop to nwelemn

master
Jari Vetoniemi 10 年之前
父節點
當前提交
008ddf0117
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/pi9.c

+ 1
- 1
src/pi9.c 查看文件

@ -364,7 +364,7 @@ op_Twalk(struct pi9 *pi9, uint16_t tag, struct pi9_stream *stream)
goto err_not_allowed;
struct pi9_string walks[MAXWELEM] = {{0}};
for (uint32_t i = 0; i < MAXWELEM; ++i) {
for (uint32_t i = 0; i < nwname; ++i) {
uint16_t len;
if (!chck_buffer_read_int(&len, sizeof(len), &stream->in))
goto err_read;

Loading…
取消
儲存