Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 75d76f54 authored by deuce's avatar deuce

Fix minor bug in od_puttext() where the comparison was using *((int *)var)

instead of *((WORD *)var).
parent 3ebb899e
......@@ -185,9 +185,9 @@ ODAPIDEF BOOL ODCALL od_puttext(INT nLeft, INT nTop, INT nRight, INT nBottom,
if(od_control.od_full_put) break;
/* If both buffers have space characters. */
if(*pchMemory==*pchTest && (*pchTest==' ' || *pchTest=='\0'))
if((*pchMemory==' ' || *pchMemory==0) && (*pchTest==' ' || *pchTest=='\0'))
{
/* If colours differ, then stop comparison loop. */
/* If background colours differ, then stop comparison loop. */
if((pchTest[1]&0x70) != (pchMemory[1]&0x70))
{
break;
......@@ -195,7 +195,7 @@ ODAPIDEF BOOL ODCALL od_puttext(INT nLeft, INT nTop, INT nRight, INT nBottom,
}
/* If both have different character and colour attributes. */
else if(*((int *)pchTest) != *((int *)pchMemory))
else if(*((WORD *)pchTest) != *((WORD *)pchMemory))
{
/* Then stop comparison loop now. */
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment