mirror of
https://github.com/moibenko/mtx.git
synced 2026-01-03 19:03:58 +00:00
More fixes to make copy of serial number correct
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user