Fix a g_strconcat() without terminating NULL.

This commit is contained in:
Jean-Yves Lefort 2005-12-20 19:33:05 +00:00
parent 2ffcc0371a
commit e90c21eb05
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=151667
2 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= gob2
PORTVERSION= 2.0.13
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.0

View file

@ -0,0 +1,11 @@
--- src/main.c.orig Tue Dec 20 20:28:09 2005
+++ src/main.c Tue Dec 20 20:28:55 2005
@@ -3078,7 +3078,7 @@
outfilebase = g_strconcat (fullfilebase, for_cpp ? ".cc" : ".c", NULL);
outfile = g_strconcat(outfilebase, no_touch ? "#gob#" : "", NULL);
- outfilehbase = g_strconcat (fullfilebase, ".h");
+ outfilehbase = g_strconcat (fullfilebase, ".h", NULL);
outfileh = g_strconcat(outfilehbase, no_touch_headers ? "#gob#" : "", NULL);
if ((privates > 0 || protecteds > 0 ||