Hi,

* Thorsten Haude wrote (2008-03-09 13:27):
>I fixed this, but Sourceforge doesn't let me create the patch.

Here we go.


Thorsten
-- 
Try not to be a man of success but rather of value.
    - Albert Einstein
Index: source/tags.c
===================================================================
RCS file: /cvsroot/nedit/nedit/source/tags.c,v
retrieving revision 1.70
diff --unified=5 -p -r1.70 tags.c
--- source/tags.c       1 Mar 2008 22:18:06 -0000       1.70
+++ source/tags.c       9 Mar 2008 12:38:32 -0000
@@ -1785,11 +1785,12 @@ static int nextTFBlock(FILE *fp, char *h
     
     /* Now we know it's a meaningful block */
     dummy1 = searchLine(line, include_regex);
     if( dummy1 || searchLine(line, alias_regex) ) {
         /* INCLUDE or ALIAS block */
-        int incLen, incPos, i, incLines;
+        long incLen, incPos;
+        int i, incLines;
         
         /* fprintf(stderr, "Starting include/alias at line %i\n", *currLine); 
*/
         if(dummy1)
             code = TF_INCLUDE;
         else {
@@ -1824,11 +1825,11 @@ static int nextTFBlock(FILE *fp, char *h
             fprintf( stderr, "nedit: Warning: empty '* include *' or"
                     " '* alias *' block in calltips file.\n" );
             return TF_ERROR;
         }
         /* Make space for the filenames/alias sources */
-        *body = (char *)malloc(incLen+1);
+        *body = (char*) malloc((size_t) incLen + 1);
         if (!*body) 
             return TF_ERROR;
         *body[0]=0;
         if (fseek(fp, incPos, SEEK_SET) != 0) {
             free (*body);

Attachment: pgpTY7OJTeT8v.pgp
Description: PGP signature

-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to