diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-14 07:34:35 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-14 07:34:35 +0100 |
commit | 85ca6e699118ce93a927a740082472285b59e3bf (patch) | |
tree | 56d18a6b599b3380c61ca03d1adf27037c91dd40 /src/systemcmds/mtd/mtd.c | |
parent | f30ae8c9f3b2f97322f5f4b2f6dcebb6277cd9c0 (diff) | |
download | px4-firmware-85ca6e699118ce93a927a740082472285b59e3bf.tar.gz px4-firmware-85ca6e699118ce93a927a740082472285b59e3bf.tar.bz2 px4-firmware-85ca6e699118ce93a927a740082472285b59e3bf.zip |
Eliminated magic number
Diffstat (limited to 'src/systemcmds/mtd/mtd.c')
-rw-r--r-- | src/systemcmds/mtd/mtd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemcmds/mtd/mtd.c b/src/systemcmds/mtd/mtd.c index 590c1fb30..baef9dccc 100644 --- a/src/systemcmds/mtd/mtd.c +++ b/src/systemcmds/mtd/mtd.c @@ -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]); |