adept_loan_mgt is dumping endless of space characters #3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
adept_loan_mgt is not working with the latest release (
0d77cf5
). When run, it dumps endless space characters. It has to be stopped by Ctrl-C. In fact it writes 7 spaces (0x20) followed by "ID" (0x49 0x44) followed by endless spaces (0x20):The only 2 options which work are
--help
and--version
.Sorry for the delay, I didn't get notification for this ticket.
I tried both compiled utils, AppImage and own compilation but it's OK on my side.
What is your system configuration ?
Can you upload files inside your ~/.config/adept/loans ?
Thnaks
I think I understand why there is a bug.
For an unknown reason, the loan has no name:
This has an impact on adept_loan_mgt.cpp and more precisely at line 243. As the loan has no name,
maxSizeBookName = 0
but this is anunsigned int
. At line 243 we have:The
unsigned int
cannot be negative and we end-up with an integer underflow. The result isfillBookName = 2147483646
.You can easily solve the issue by replacing line 243 by:
You do not have the integer underflow anymore but you end up with
fillBookName = -2
which might not be wanted...The question I do not have an answer is: Is it normal not to have a name in a loan?
Thanks for investigating it !
I created a branch loan_empty_name to manage names with size < 4. Can you validate it before merge ?
If you can also send me .acsm file to check why there is no name, it would be nice.
I confirm the loan_empty_name branch works as expected. "No name" appears.
Thank you for the fix.