mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-19 16:41:26 +00:00
parent
2c569953d0
commit
f5193874c8
repos/libports
@ -4,7 +4,9 @@ INC_DIR += $(call select_from_ports,e2fsprogs-lib)/include/e2fsprogs
|
||||
|
||||
LIBS := libc e2fsprogs_host_tools
|
||||
|
||||
CC_OPT += -Wno-unused-variable -Wno-unused-function -Wno-maybe-uninitialized
|
||||
CC_OPT += -Wno-unused-variable -Wno-unused-function -Wno-maybe-uninitialized \
|
||||
-Wno-format-overflow -Wno-format-truncation -Wno-unused-but-set-variable \
|
||||
-Wno-address-of-packed-member -Wno-sizeof-pointer-memaccess
|
||||
|
||||
CC_DEF += -DLOCALEDIR=\"/share/locale\"
|
||||
CC_DEF += -DLIBDIR=\"/lib\"
|
||||
|
@ -1 +1 @@
|
||||
9b9fa07e2adce25d2ca5adf9b80c7fce6a5556fe
|
||||
6c150dd3925523ff1eb2ab782524133079743acd
|
||||
|
@ -0,0 +1,13 @@
|
||||
diff --git src/lib/e2fsprogs/lib/quota/quotaio.c src/lib/e2fsprogs/lib/quota/quotaio.c
|
||||
index 1bdcba6c..8bd253d4 100644
|
||||
--- src/lib/e2fsprogs/lib/quota/quotaio.c
|
||||
+++ src/lib/e2fsprogs/lib/quota/quotaio.c
|
||||
@@ -64,7 +64,7 @@ const char *quota_get_qf_path(const char *mntpt, int qtype, int fmt,
|
||||
return NULL;
|
||||
|
||||
strncpy(path_buf, mntpt, path_buf_size);
|
||||
- strncat(path_buf, "/", 1);
|
||||
+ strncat(path_buf, "/", path_buf_size - strlen(path_buf));
|
||||
strncat(path_buf, quota_get_qf_name(qtype, fmt, qf_name),
|
||||
path_buf_size - strlen(path_buf));
|
||||
|
Loading…
x
Reference in New Issue
Block a user