Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 598 → Rev 599

/svarlang.lib/svarlang.c
26,11 → 26,14
#include <stdlib.h> /* NULL */
#include <string.h> /* memcmp(), strcpy() */
 
#include "deflang.c"
 
#include "svarlang.h"
 
 
/* supplied through DEFLANG.C */
extern char svarlang_mem[];
extern const unsigned short svarlang_memsz;
 
 
const char *svarlang_strid(unsigned short id) {
const char *ptr = svarlang_mem;
/* find the string id in langblock memory */
86,7 → 89,7
}
 
/* found - but do I have enough memory space? */
if (buff16[1] >= sizeof(svarlang_mem)) {
if (buff16[1] >= svarlang_memsz) {
fclose(fd);
return(-4);
}