improve non empty files.

This commit is contained in:
Vitor Santos Costa 2011-02-11 14:17:06 +00:00
parent b475be5692
commit 07b17f473a

View File

@ -27,9 +27,10 @@ gds_t gds;
static atom_t static atom_t
uncachedCodeToAtom(int chrcode) uncachedCodeToAtom(int chrcode)
{ if ( chrcode < 256 ) { if ( chrcode < 256 )
{ char tmp[1]; { char tmp[2];
tmp[0] = chrcode; tmp[0] = chrcode;
tmp[1] = '\0';
return lookupAtom(tmp, 1); return lookupAtom(tmp, 1);
} else } else
{ pl_wchar_t tmp[2]; { pl_wchar_t tmp[2];