1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-08 20:10:24 +08:00

fix lst null err

This commit is contained in:
fumiama
2021-02-16 16:47:46 +08:00
parent 667af72a0a
commit 0ee412c695
2 changed files with 1 additions and 0 deletions

BIN
server

Binary file not shown.

View File

@@ -177,6 +177,7 @@ int s5_list(int *s) {
char *keys = calloc(size, DATASIZE);
if(keys) {
rewind(fp);
keys[0] = 0;
while(fread(&dict, DICTBLKSZ, 1, fp) > 0) {
u_char ks = dict.keysize;
dict.key[ks] = 0;