Skip to content

Commit

Permalink
SET TRANSLATE ON should not erase white spaces in the paths
Browse files Browse the repository at this point in the history
  • Loading branch information
estiloinfo committed Jan 25, 2012
1 parent 1d334d8 commit 1e46487
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions clip/cliprt.c
Expand Up @@ -10683,15 +10683,11 @@ _clip_translate_path(ClipMachine * mp, const char *str, char *buf, int buflen)
if (mp->flags & TRANSLATE_FLAG)
{
#if 1
int i,j;
for (i=0,j=0; i<bl; i++)
int i;
for (i=0; i<bl; i++)
{
if (buf[i] == ' ')
continue;
buf[j] = tolower((unsigned char) (buf[i]));
j ++;
buf[i] = tolower((unsigned char) (buf[i]));
}
buf[j] = 0;
#else
char *tmp;
for (e = buf + bl, s = buf; s < e; ++s)
Expand Down

0 comments on commit 1e46487

Please sign in to comment.