Corrected a linked list bug that caused no barcode to be read

This commit is contained in:
Andrew Brooks 2018-01-25 21:01:05 -06:00
parent 653064f0fc
commit fcaca85066
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ await_next_barcode(int fd)
ll_string *ll_barcode = NULL;
while ((c = decode_next_event(fd)) != '\n')
{
ll_string_append(ll_barcode, c);
ll_barcode = ll_string_append(ll_barcode, c);
}
barcode = ll_string_to_c_string(ll_barcode);
ll_string_free(ll_barcode);