Skip to content
Snippets Groups Projects
Commit 85ca6e69 authored by Lorenz Meier's avatar Lorenz Meier
Browse files

Eliminated magic number

parent f30ae8c9
No related branches found
No related tags found
No related merge requests found
......@@ -225,7 +225,7 @@ mtd_start(char *partition_names[], unsigned n_partitions)
/* Initialize to provide an FTL block driver on the MTD FLASH interface */
snprintf(blockname, 32, "/dev/mtdblock%d", i);
snprintf(blockname, sizeof(blockname), "/dev/mtdblock%d", i);
ret = ftl_initialize(i, part[i]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment