fix off-by-one error in memset()

This commit is contained in:
Markus Fröschle
2018-03-17 08:24:59 +01:00
parent 7f7de32cac
commit b2a567277a
3 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ endif
# can be either "Y" or "N" (without quotes). "Y" for using the m68k-elf-, "N" for using the m68k-atari-mint
# toolchain
COMPILE_ELF=N
COMPILE_ELF=Y
ifeq (Y,$(COMPILE_ELF))
TCPREFIX=m68k-elf-
@@ -183,7 +183,7 @@ LIBBAS=libbas.a
LIBS=$(patsubst %,%/$(LIBBAS),$(TRGTDIRS))
all: ver fls ram bfl lib tos
all: ver fls ram bfl lib
fls: $(patsubst %,%/$(FLASH_EXEC),$(TRGTDIRS))
ram: $(patsubst %,%/$(RAM_EXEC),$(TRGTDIRS))
bfl: $(patsubst %,%/$(BASFLASH_EXEC),$(TRGTDIRS))

0
util/bas_sscanf.c Normal file
View File

View File

@@ -59,7 +59,7 @@ void *memset(void *s, int c, size_t n)
do
{
*dst++ = c;
} while (n--);
} while (--n);
return s;
}