gimp r24674 - in branches/gimp-2-4: . plug-ins/imagemap



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

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

	Merged from trunk:

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

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


Modified:
   branches/gimp-2-4/ChangeLog
   branches/gimp-2-4/plug-ins/imagemap/imap_csim.y
   branches/gimp-2-4/plug-ins/imagemap/imap_csim_parse.c
   branches/gimp-2-4/plug-ins/imagemap/imap_csim_parse.h

Modified: branches/gimp-2-4/plug-ins/imagemap/imap_csim.y
==============================================================================
--- branches/gimp-2-4/plug-ins/imagemap/imap_csim.y	(original)
+++ branches/gimp-2-4/plug-ins/imagemap/imap_csim.y	Tue Jan 22 16:10:42 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: branches/gimp-2-4/plug-ins/imagemap/imap_csim_parse.c
==============================================================================
--- branches/gimp-2-4/plug-ins/imagemap/imap_csim_parse.c	(original)
+++ branches/gimp-2-4/plug-ins/imagemap/imap_csim_parse.c	Tue Jan 22 16:10:42 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: branches/gimp-2-4/plug-ins/imagemap/imap_csim_parse.h
==============================================================================
--- branches/gimp-2-4/plug-ins/imagemap/imap_csim_parse.h	(original)
+++ branches/gimp-2-4/plug-ins/imagemap/imap_csim_parse.h	Tue Jan 22 16:10:42 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]