pCode - register allocation, flow analysis, and peephole.
[fw/sdcc] / src / SDCC.lex
index a668b0aed4f095474c602d77bdab90de8b8f56e1..b335a917aaf958af396969789c558046a5d9867b 100644 (file)
@@ -263,7 +263,7 @@ int checkCurrFile ( char *s)
        /* mark the end of the filename */
        while (*s != '"') s++;
        *s = '\0';
-       currFname = Safe_calloc(strlen(sb)+1);
+       currFname = Safe_calloc(1,strlen(sb)+1);
        strcpy(currFname,sb);
        yylineno = lNum - 2;
     }