Commit 58bb2fbd authored by Jean-Paul Saman's avatar Jean-Paul Saman
Browse files

Fix Segmentation fault in RPN while parsing pathnames.

parent d1652d5c
......@@ -400,16 +400,17 @@ void E_(EvaluateRPN)( intf_thread_t *p_intf, mvar_t *vars,
{
char *psz_src = E_(SSPop)( st );
char *psz_dest;
char *str = psz_src;
p = psz_dest = strdup( psz_src );
while( *psz_src )
while( *str )
{
if( *psz_src == '\\' && *(psz_src + 1) )
if( *str == '\\' && *(str + 1) )
{
psz_src++;
str++;
}
*p++ = *psz_src++;
*p++ = *str++;
}
*p = '\0';
......
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