summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-12-15 15:28:05 +0000
committerFrederic Culot <calcurse@culot.org>2006-12-15 15:28:05 +0000
commitcbdee3d133d61c14fcbdcdadd7a2b8cf92ac64a4 (patch)
treed494f3556a1d90ed0c680156295c46fab654ec4a /src
parent10478d9b96243016dc668d5c58672e1c7c2a9295 (diff)
downloadcalcurse-cbdee3d133d61c14fcbdcdadd7a2b8cf92ac64a4.zip
missing header added and sprintf replaced by snprintf
Diffstat (limited to 'src')
-rwxr-xr-xsrc/help.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/help.c b/src/help.c
index f126914..c13c892 100755
--- a/src/help.c
+++ b/src/help.c
@@ -1,4 +1,4 @@
-/* $calcurse: help.c,v 1.11 2006/12/12 14:16:38 culot Exp $ */
+/* $calcurse: help.c,v 1.12 2006/12/15 15:28:05 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
+#include <ctype.h>
#include <sys/types.h>
#include "i18n.h"
@@ -73,7 +74,7 @@ void help_screen(int which_pan, int colr)
{
WINDOW *help_win = NULL;
WINDOW *help_pad = NULL;
- char label[80];
+ char label[MAX_LENGTH];
int ch = '?';
int help_row, text_lines;
int help_col = col;
@@ -341,7 +342,7 @@ void help_screen(int which_pan, int colr)
help_win = newwin(help_row, help_col, 0, 0);
help_pad = newpad(MAX_LENGTH, pad_width);
box(help_win, 0, 0);
- sprintf(label, _("CalCurse %s | help"), VERSION);
+ snprintf(label, MAX_LENGTH, _("CalCurse %s | help"), VERSION);
win_show(help_win, label);
/* Display the help screen related to user input. */