More fixes to make copy of serial number correct

This commit is contained in:
Alexander
2024-08-28 14:49:48 +03:00
parent dad84047e8
commit ab9addfb69

View File

@@ -626,7 +626,11 @@ void copy_char_buffer(unsigned char *src, unsigned char *dest, int num)
{
*dest_tmp++ = 0;
}
/* there happen cases when serial number begins with several ' ' */
/* skip them */
while (*src == ' ') {
src++;
}
for (i=0; i < num; i++)
{
if (isxdigit(*src)) {