diff options
Diffstat (limited to 'src/multiboot2.c')
-rw-r--r-- | src/multiboot2.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/multiboot2.c b/src/multiboot2.c index ea06e96..bd6250f 100644 --- a/src/multiboot2.c +++ b/src/multiboot2.c @@ -7,7 +7,8 @@ boot_info_t info __attribute__((section(".init"))); __attribute__((section(".multiboot.text"))) void multiboot_strncpy(char *dest, const char *src, unsigned n) { - for (unsigned i = 0; i < n && src[i] != '\0'; ++i) dest[i] = src[i]; + unsigned i; + for (i = 0; i < n && src[i] != '\0'; ++i) dest[i] = src[i]; } __attribute__((section(".multiboot.text"))) void @@ -44,6 +45,6 @@ __multiboot2(multiboot_uint32_t addr) break; default: break; - } // switch - } // for + } + } } |