Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 599 → Rev 598

/svarlang.lib/svarlang.c
26,14 → 26,11
#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 */
89,7 → 86,7
}
 
/* found - but do I have enough memory space? */
if (buff16[1] >= svarlang_memsz) {
if (buff16[1] >= sizeof(svarlang_mem)) {
fclose(fd);
return(-4);
}