diff --git a/Contrib/nsExec/nsexec.c b/Contrib/nsExec/nsexec.c index a4dcf469..f6565c22 100644 --- a/Contrib/nsExec/nsexec.c +++ b/Contrib/nsExec/nsexec.c @@ -149,6 +149,18 @@ int LogMessages(const char *pStr) { else pStr = i+1; } } + else if (my_strstr(pStr,"\n")) { + while (*pStr) { + char *i = my_strstr(pStr,"\n"); + if (i==0) { + LogMessage(pStr); + break; + } + *i=0; + LogMessage(pStr); + pStr = i+1; + } + } return 1; } @@ -174,7 +186,7 @@ char *my_strstr(const char *string, const char *strCharSet) { char *s1, *s2; size_t chklen; size_t i; - if (lstrlen(string) < lstrlen(strCharSet)) return 0; + if (lstrlen(string) < lstrlen(strCharSet)) return 0; if (!*strCharSet) return (char*)string; chklen=lstrlen(string)-lstrlen(strCharSet); for (i = 0; i < chklen; i++) { diff --git a/Plugins/nsExec.dll b/Plugins/nsExec.dll index 4f0ea9c9..a3c108b8 100644 Binary files a/Plugins/nsExec.dll and b/Plugins/nsExec.dll differ