mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 07:18:49 +01:00
The strcpy() usage would overwrite its own buffer. The behaviour somehow
worked in Linux but it seems to have changed in Ubuntu 10.04 x64 and compiling GCC 2 would not work on it. Thanks to Shisui for the investigation and original patch and to Ingo who noticed a simpler way to fix the problem. git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@37574 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b363ec1bd9
commit
2b4fc44ef0
@ -1,5 +1,5 @@
|
||||
/* Makeinfo -- convert Texinfo source files into Info files.
|
||||
$Id: makeinfo.c,v 1.1 2004/10/28 18:14:10 zooey Exp $
|
||||
$Id$
|
||||
|
||||
Copyright (C) 1987, 92, 93, 94, 95, 96, 97, 98
|
||||
Free Software Foundation, Inc.
|
||||
@ -1683,7 +1683,7 @@ canon_white (string)
|
||||
{
|
||||
if (!cr_or_whitespace (string[x]))
|
||||
{
|
||||
strcpy (string, string + x);
|
||||
memmove(string, string + x, strlen(string + x) + 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user