Actually exit loop on '\0' while printing a string.

This commit is contained in:
Eric Pouech 2002-11-13 04:07:46 +00:00 committed by Alexandre Julliard
parent 80d8074cae
commit 6c963cad4e

View file

@ -358,6 +358,7 @@ int DEBUG_PrintStringA(int chnl, const DBG_ADDR* address, int len)
ach[l] = '\0'; /* protect from displaying junk */
l = strlen(ach);
DEBUG_OutputA(chnl, ach, l);
if (l < sizeof(ach) - 1) break;
lin += l;
}
return len - i; /* number of actually written chars */