Subversion Repositories SvarDOS

Rev

Rev 248 | Rev 252 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 248 Rev 251
Line 131... Line 131...
131
 
131
 
132
void removeDoubleBackslashes(char *str) {
132
void removeDoubleBackslashes(char *str) {
133
  char *curpos;
133
  char *curpos;
134
  int x;
134
  int x;
135
  for (;;) {
135
  for (;;) {
136
    curpos = fdnpkg_strcasestr(str, "\\\\");
136
    curpos = strstr(str, "\\\\");
137
    if (curpos == NULL) return; /* job done */
137
    if (curpos == NULL) return; /* job done */
138
    for (x = 1; curpos[x] != 0; x++) {
138
    for (x = 1; curpos[x] != 0; x++) {
139
      curpos[x - 1] = curpos[x];
139
      curpos[x - 1] = curpos[x];
140
    }
140
    }
141
    curpos[x - 1] = 0;
141
    curpos[x - 1] = 0;