mirror of
https://github.com/moibenko/mtx.git
synced 2026-07-29 10:42:38 +00:00
One more fix to copy_char_buffer to make trailing charachter correct.
This commit is contained in:
+1
-1
@@ -624,7 +624,7 @@ void copy_char_buffer(unsigned char *src, unsigned char *dest, int num)
|
||||
while ((*src<= 32) || (*src > 127)) {
|
||||
src++;
|
||||
}
|
||||
for (i=0; i < num; i++)
|
||||
for (i=0; i <= num; i++)
|
||||
{
|
||||
*dest_tmp++ = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user