aboutsummaryrefslogtreecommitdiffstats
path: root/math/emc2/files/patch-libI77__lread.c
blob: c948e61426086860aed01c69f96f671df4182bee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- ./libI77/lread.c.orig   2010-08-31 08:39:32.000000000 -0400
+++ ./libI77/lread.c    2010-08-31 08:40:19.000000000 -0400
@@ -369,7 +369,7 @@
            *p++ = ch;
            f__lcount = 10*f__lcount + ch - '0';
            if (++i == size) {
-               f__lchar = (char *)realloc(f__lchar,
+               f__lchar = (char *)reallocf(f__lchar,
                    (unsigned int)(size += BUFSIZE));
                p = f__lchar + i;
                }
@@ -401,7 +401,7 @@
  noquote:
            *p++ = ch;
            if (++i == size) {
-               f__lchar = (char *)realloc(f__lchar,
+               f__lchar = (char *)reallocf(f__lchar,
                    (unsigned int)(size += BUFSIZE));
                p = f__lchar + i;
                }
@@ -414,7 +414,7 @@
        if(i==size)
        {
        newone:
-           f__lchar= (char *)realloc(f__lchar,
+           f__lchar= (char *)reallocf(f__lchar,
                    (unsigned int)(size += BUFSIZE));
            p=f__lchar+i-1;
            *p++ = ch;