gimp r24673 - in trunk: . plug-ins/imagemap



Author: neo
Date: Tue Jan 22 16:10:06 2008
New Revision: 24673
URL: http://svn.gnome.org/viewvc/gimp?rev=24673&view=rev

Log:
2008-01-22  Sven Neumann  <sven gimp org>

	* plug-ins/imagemap/imap_csim.y: increased buffer size. Addresses
	bug #511072.

	* plug-ins/imagemap/imap_csim_parse.[ch]: regenerated.


Modified:
   trunk/ChangeLog
   trunk/plug-ins/imagemap/imap_csim.y
   trunk/plug-ins/imagemap/imap_csim_parse.c
   trunk/plug-ins/imagemap/imap_csim_parse.h

Modified: trunk/plug-ins/imagemap/imap_csim.y
==============================================================================
--- trunk/plug-ins/imagemap/imap_csim.y	(original)
+++ trunk/plug-ins/imagemap/imap_csim.y	Tue Jan 22 16:10:06 2008
@@ -49,7 +49,7 @@
 %union {
   int val;
   double value;
-  char id[1024];		/* Large enough to hold all polygon points! */
+  char id[4096];		/* Large enough to hold all polygon points! */
 }
 
 %token<val> IMG SRC WIDTH HEIGHT BORDER USEMAP
@@ -136,7 +136,7 @@
 		{
 		   gchar *description;
 
-		   description = g_strconcat(_map_info->description, $2, "\n", 
+		   description = g_strconcat(_map_info->description, $2, "\n",
 					     NULL);
 		   g_strreplace(&_map_info->description, description);
 		}
@@ -154,7 +154,7 @@
 		;
 
 xhtml_close	: '>'
-		| '/' '>' 
+		| '/' '>'
 		;
 
 tag_list	: /* Empty */
@@ -310,7 +310,7 @@
 
 %%
 
-static void 
+static void
 csim_error(char* s)
 {
    extern FILE *csim_in;

Modified: trunk/plug-ins/imagemap/imap_csim_parse.c
==============================================================================
--- trunk/plug-ins/imagemap/imap_csim_parse.c	(original)
+++ trunk/plug-ins/imagemap/imap_csim_parse.c	Tue Jan 22 16:10:06 2008
@@ -207,7 +207,7 @@
 {
   int val;
   double value;
-  char id[1024];		/* Large enough to hold all polygon points! */
+  char id[4096];		/* Large enough to hold all polygon points! */
 }
 /* Line 187 of yacc.c.  */
 #line 214 "y.tab.c"
@@ -1580,7 +1580,7 @@
     {
 		   gchar *description;
 
-		   description = g_strconcat(_map_info->description, (yyvsp[(2) - (3)].id), "\n", 
+		   description = g_strconcat(_map_info->description, (yyvsp[(2) - (3)].id), "\n",
 					     NULL);
 		   g_strreplace(&_map_info->description, description);
 		}
@@ -1955,7 +1955,7 @@
 #line 311 "imap_csim.y"
 
 
-static void 
+static void
 csim_error(char* s)
 {
    extern FILE *csim_in;

Modified: trunk/plug-ins/imagemap/imap_csim_parse.h
==============================================================================
--- trunk/plug-ins/imagemap/imap_csim_parse.h	(original)
+++ trunk/plug-ins/imagemap/imap_csim_parse.h	Tue Jan 22 16:10:06 2008
@@ -104,7 +104,7 @@
 {
   int val;
   double value;
-  char id[1024];		/* Large enough to hold all polygon points! */
+  char id[4096];		/* Large enough to hold all polygon points! */
 }
 /* Line 1489 of yacc.c.  */
 #line 111 "y.tab.h"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]