mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
Actually exit loop on '\0' while printing a string.
This commit is contained in:
parent
80d8074cae
commit
6c963cad4e
1 changed files with 1 additions and 0 deletions
|
@ -358,6 +358,7 @@ int DEBUG_PrintStringA(int chnl, const DBG_ADDR* address, int len)
|
||||||
ach[l] = '\0'; /* protect from displaying junk */
|
ach[l] = '\0'; /* protect from displaying junk */
|
||||||
l = strlen(ach);
|
l = strlen(ach);
|
||||||
DEBUG_OutputA(chnl, ach, l);
|
DEBUG_OutputA(chnl, ach, l);
|
||||||
|
if (l < sizeof(ach) - 1) break;
|
||||||
lin += l;
|
lin += l;
|
||||||
}
|
}
|
||||||
return len - i; /* number of actually written chars */
|
return len - i; /* number of actually written chars */
|
||||||
|
|
Loading…
Reference in a new issue