[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and to
From: |
Klaus Treichel |
Subject: |
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. bbff92a0bb0d327feecb64712c85b498f0b72410 |
Date: |
Mon, 28 Feb 2011 19:46:57 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "DotGNU Portable.NET engine, compilers and tools (pnet)".
The branch, master has been updated
via bbff92a0bb0d327feecb64712c85b498f0b72410 (commit)
from ffd0bc555ec5a1f20267c27e0a8d0f20274596cd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/pnet.git/commit/?id=bbff92a0bb0d327feecb64712c85b498f0b72410
commit bbff92a0bb0d327feecb64712c85b498f0b72410
Author: Klaus Treichel <address@hidden>
Date: Mon Feb 28 20:46:32 2011 +0100
csdoc/src2xml.c (Convert): Use memmove instead of strcpy to move the
contents of the text buffer because strcpy's behavior is undefined if the
regions overlap.
cscc/Makefile.am: Use libtool for installing the programs to fix install
problems where the actual binary is in the .libs directory.
diff --git a/ChangeLog b/ChangeLog
index e953c4b..bbe361d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-02-28 Klaus Treichel <address@hidden>
+
+ * csdoc/src2xml.c (Convert): Use memmove instead of strcpy to move
+ the contents of the text buffer because strcpy's behavior is undefined
+ if the regions overlap.
+
+ * cscc/Makefile.am: Use libtool for installing the programs to fix
+ install problems where the actual binary is in the .libs directory.
+
2011-01-16 Klaus Treichel <address@hidden>
* include/il_coder.h: Add ILCoderExceptions and hasRethrow arguments
diff --git a/cscc/Makefile.am b/cscc/Makefile.am
index c18f994..d5609be 100644
--- a/cscc/Makefile.am
+++ b/cscc/Makefile.am
@@ -59,13 +59,13 @@ install-exec-local:
@$(NORMALL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(libdir)/cscc/plugins
$(mkinstalldirs) $(DESTDIR)$(bindir)
- $(INSTALL_PROGRAM) cscc-cs$(EXEEXT)
$(DESTDIR)$(libdir)/cscc/plugins/cscc-cs$(EXEEXT)
- $(INSTALL_PROGRAM) cscc-c-s$(EXEEXT)
$(DESTDIR)$(libdir)/cscc/plugins/cscc-c-s$(EXEEXT)
- $(INSTALL_PROGRAM) cscc-vb$(EXEEXT)
$(DESTDIR)$(libdir)/cscc/plugins/cscc-vb$(EXEEXT)
- $(INSTALL_PROGRAM) cscc-java$(EXEEXT)
$(DESTDIR)$(libdir)/cscc/plugins/cscc-java$(EXEEXT)
- $(INSTALL_PROGRAM) cscc-bf$(EXEEXT)
$(DESTDIR)$(libdir)/cscc/plugins/cscc-bf$(EXEEXT)
- $(INSTALL_PROGRAM) cscc$(EXEEXT) $(DESTDIR)$(bindir)/cscc$(EXEEXT)
- $(INSTALL_PROGRAM) csdoc$(EXEEXT) $(DESTDIR)$(bindir)/csdoc$(EXEEXT)
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install
$(INSTALL_PROGRAM) cscc-cs$(EXEEXT)
$(DESTDIR)$(libdir)/cscc/plugins/cscc-cs$(EXEEXT)
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install
$(INSTALL_PROGRAM) cscc-c-s$(EXEEXT)
$(DESTDIR)$(libdir)/cscc/plugins/cscc-c-s$(EXEEXT)
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install
$(INSTALL_PROGRAM) cscc-vb$(EXEEXT)
$(DESTDIR)$(libdir)/cscc/plugins/cscc-vb$(EXEEXT)
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install
$(INSTALL_PROGRAM) cscc-java$(EXEEXT)
$(DESTDIR)$(libdir)/cscc/plugins/cscc-java$(EXEEXT)
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install
$(INSTALL_PROGRAM) cscc-bf$(EXEEXT)
$(DESTDIR)$(libdir)/cscc/plugins/cscc-bf$(EXEEXT)
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install
$(INSTALL_PROGRAM) cscc$(EXEEXT) $(DESTDIR)$(bindir)/cscc$(EXEEXT)
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install
$(INSTALL_PROGRAM) csdoc$(EXEEXT) $(DESTDIR)$(bindir)/csdoc$(EXEEXT)
rm -f $(DESTDIR)$(libdir)/cscc/plugins/cscc-csharp$(EXEEXT)
rm -f $(DESTDIR)$(libdir)/cscc/plugins/cscc-b$(EXEEXT)
rm -f $(DESTDIR)$(bindir)/cli-unknown-gcc$(EXEEXT)
diff --git a/csdoc/src2xml.c b/csdoc/src2xml.c
index f3cd621..5f6e7de 100644
--- a/csdoc/src2xml.c
+++ b/csdoc/src2xml.c
@@ -59,7 +59,7 @@ static void Convert(const char *filename)
while(buffer[temp] != '\0' && isspace(buffer[temp]))
++temp;
if(temp > 0)
- strcpy(buffer, buffer + temp);
+ memmove(buffer, buffer + temp, strlen(buffer + temp) +
1);
temp = strlen(buffer);
while(temp > 0 && isspace(buffer[temp - 1]))
--temp;
@@ -78,7 +78,7 @@ static void Convert(const char *filename)
(isspace(buffer[temp]) || buffer[temp] ==
'*'))
++temp;
if(temp > 0)
- strcpy(buffer, buffer + temp);
+ memmove(buffer, buffer + temp, strlen(buffer +
temp) + 1);
puts(buffer);
continue;
}
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 9 +++++++++
cscc/Makefile.am | 14 +++++++-------
csdoc/src2xml.c | 4 ++--
3 files changed, 18 insertions(+), 9 deletions(-)
hooks/post-receive
--
DotGNU Portable.NET engine, compilers and tools (pnet)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. bbff92a0bb0d327feecb64712c85b498f0b72410,
Klaus Treichel <=