summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2008-04-20 12:54:05 +0000
committerFrederic Culot <calcurse@culot.org>2008-04-20 12:54:05 +0000
commit8ba04b5220b0b741b2b58366320c3a9f23f844d2 (patch)
treedc5a57e8dcdbfdf171ad709334921ef8ac281fda
parent15a27e8958c8d794c40c038d12a736aa3de021a3 (diff)
downloadcalcurse-8ba04b5220b0b741b2b58366320c3a9f23f844d2.zip
strcat use avoided
-rwxr-xr-xsrc/args.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/args.c b/src/args.c
index 29e6bc2..0b5395d 100755
--- a/src/args.c
+++ b/src/args.c
@@ -1,4 +1,4 @@
-/* $calcurse: args.c,v 1.33 2008/04/19 21:05:15 culot Exp $ */
+/* $calcurse: args.c,v 1.34 2008/04/20 12:54:05 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -143,7 +143,7 @@ print_notefile (FILE *out, char *filename, int nbtab)
int printlinestarter = 1;
for (i = 0; i < nbtab; i++)
- strcat (linestarter, "\t");
+ snprintf(linestarter, BUFSIZ, "%s\t", linestarter);
snprintf (path_to_notefile, BUFSIZ, "%s/%s", path_notes, filename);
notefile = fopen (path_to_notefile, "r");