summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 4532f02..4e15164 100644
--- a/src/main.c
+++ b/src/main.c
@@ -877,7 +877,7 @@ command_search(int argc, const char *argv[])
return 1;
}
- sprintf(pattern, "*%s*", argv[0]);
+ snprintf(pattern, sizeof pattern, "*%s*", argv[0]);
set = razor_set_open(repo_filename);
if (set == NULL)