summaryrefslogtreecommitdiff
path: root/src/udev/collect/collect.c
diff options
context:
space:
mode:
authorRobert Milasan <rmilasan@suse.com>2012-09-27 15:51:58 +0200
committerKay Sievers <kay@vrfy.org>2012-09-27 15:51:58 +0200
commit2cf598fe02a391e771874b6aa43b55f81068e119 (patch)
tree79a04fc3a9bedc0520ed54b0c1f4e36664f37432 /src/udev/collect/collect.c
parent84c3f7c2bb47168d2da96f34b56dccedd5cf7efc (diff)
udev: collect - use snprintf()
Diffstat (limited to 'src/udev/collect/collect.c')
-rw-r--r--src/udev/collect/collect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/collect/collect.c b/src/udev/collect/collect.c
index feae4bb6ba..3c46e40de1 100644
--- a/src/udev/collect/collect.c
+++ b/src/udev/collect/collect.c
@@ -93,7 +93,7 @@ static int prepare(char *dir, char *filename)
if (stat(dir, &statbuf) < 0)
mkdir(dir, 0700);
- sprintf(buf, "%s/%s", dir, filename);
+ snprintf(buf, sizeof(buf), "%s/%s", dir, filename);
fd = open(buf,O_RDWR|O_CREAT, S_IRUSR|S_IWUSR);
if (fd < 0)