mirror of
https://github.com/moibenko/mtx.git
synced 2026-09-20 23:14:21 +00:00
More fixes to make copy of serial number correct
This commit is contained in:
+5
-1
@@ -626,7 +626,11 @@ void copy_char_buffer(unsigned char *src, unsigned char *dest, int num)
|
|||||||
{
|
{
|
||||||
*dest_tmp++ = 0;
|
*dest_tmp++ = 0;
|
||||||
}
|
}
|
||||||
|
/* there happen cases when serial number begins with several ' ' */
|
||||||
|
/* skip them */
|
||||||
|
while (*src == ' ') {
|
||||||
|
src++;
|
||||||
|
}
|
||||||
for (i=0; i < num; i++)
|
for (i=0; i < num; i++)
|
||||||
{
|
{
|
||||||
if (isxdigit(*src)) {
|
if (isxdigit(*src)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user