Commit 6c963cad authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

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

parent 80d8074c
......@@ -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 */
......
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