James Hawkins : msi: NULL-terminate dst on error.
Module: wine Branch: master Commit: 915898fbb75b8f2f945f4934d3b67496d3073558 URL: http://source.winehq.org/git/wine.git/?a=commit;h=915898fbb75b8f2f945f4934d3... Author: James Hawkins <truiken(a)gmail.com> Date: Mon Oct 9 14:06:53 2006 -0700 msi: NULL-terminate dst on error. --- dlls/msi/appsearch.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index e36d20c..622b97c 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -530,7 +530,10 @@ static void ACTION_ExpandAnyPath(MSIPACK size_t copied = 0; if (!src || !dst || !len) + { + if (dst) *dst = '\0'; return; + } /* Ignore the short portion of the path, don't think we can use it anyway */ if ((ptr = strchrW(src, '|')))
participants (1)
-
Alexandre Julliard