Author: niels
Date: Mon May 26 21:43:51 2014
New Revision: 9464

URL: http://svn.gna.org/viewcvs/service-tech?rev=9464&view=rev
Log:
* another fix for FreeBSD


Modified:
    trunk/lola2/src/InputOutput/vasprintf.cc

Modified: trunk/lola2/src/InputOutput/vasprintf.cc
URL: 
http://svn.gna.org/viewcvs/service-tech/trunk/lola2/src/InputOutput/vasprintf.cc?rev=9464&r1=9463&r2=9464&view=diff
==============================================================================
--- trunk/lola2/src/InputOutput/vasprintf.cc    (original)
+++ trunk/lola2/src/InputOutput/vasprintf.cc    Mon May 26 21:43:51 2014
@@ -51,7 +51,7 @@
        char *linebuf;
 
        if (*lineptr == NULL) {
-               linebuf = malloc(sizeof(char) * (_GETLINE_BUFLEN + 1));
+               linebuf = (char*)malloc(sizeof(char) * (_GETLINE_BUFLEN + 1));
                alloced = _GETLINE_BUFLEN + 1;
        } else {
                linebuf = *lineptr;
@@ -65,7 +65,7 @@
                        break;
                }
                if (linelen >= alloced) {
-                       linebuf = realloc(linebuf, sizeof(char) * (alloced + 
_GETLINE_BUFLEN + 1));
+                       linebuf = (char*)realloc(linebuf, sizeof(char) * 
(alloced + _GETLINE_BUFLEN + 1));
                        alloced += (_GETLINE_BUFLEN + 1);
                }
                *(linebuf + linelen) = (unsigned char)c;


-- 
You received this e-mail, because you subscribed the mailing list 
"service-tech-commits" which will forward you any e-mail addressed to 
[email protected]. If you want to unsubscribe or make any changes to 
your subscription, please go to
https://mail.gna.org/listinfo/service-tech-commits.

Reply via email to