Skip to content

Commit edac02a

Browse files
committed
Fix gcc warning -Wno-format-security
1 parent 74e9123 commit edac02a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
else:
1919
kernel41 = None
2020

21-
CFLAGS = ['-Wall', '-Werror', '-Wextra', '-Wno-format-security', '-Wno-missing-field-initializers']
21+
CFLAGS = ['-Wall', '-Werror', '-Wextra', '-Wno-missing-field-initializers']
2222

2323
classifiers = ['Development Status :: 3 - Alpha',
2424
'Operating System :: POSIX :: Linux',

source/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ BBIO_err load_device_tree(const char *name)
451451
}
452452

453453
//if the device isn't already loaded, load it, and return
454-
fprintf(file, name);
454+
fprintf(file, "%s", name);
455455
fclose(file);
456456

457457
//0.2 second delay

0 commit comments

Comments
 (0)