Line 187
Link Here
|
|
|
187 |
static void ShiftLeftOne(char *Buf) |
188 |
{ |
189 |
char *P; |
190 |
|
191 |
for (P = Buf + 1; *P; ++P) |
192 |
*(P - 1) = *P; |
193 |
*(P - 1) = '\0'; |
194 |
} |
195 |
|
Line 221
Link Here
|
221 |
strcpy(OrigDest, OrigDest + 1); |
230 |
/* According to strcpy(3): The strings may not overlap |
222 |
-- |
231 |
So the following call: |
|
|
232 |
|
233 |
strcpy(OrigDest, OrigDest + 1); |
234 |
|
235 |
is undefined, and it DOES produce errors in new versions |
236 |
of glibc (checked on glibc-2.12.2). |
237 |
|
238 |
Call safe version. */ |
239 |
ShiftLeftOne(OrigDest); |