diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-08-02 21:42:10 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-10-05 12:25:47 +0200 |
commit | 2fe7a36aab8c6c934550b2b8dc2074c1af23859a (patch) | |
tree | 31fe32a80e1f15d2bfa457b40ba337c849f3e8df /src/calcurse.h | |
parent | bc97d60ef2cacfe79875e6c604bf3f0e6d07fbd9 (diff) | |
download | calcurse-2fe7a36aab8c6c934550b2b8dc2074c1af23859a.zip |
Accept variable length note names
Read up to the first blank in note_read() instead of assuming a
fixed-width note file name. Accept everything up to 40 characters (which
is the length of a SHA1 hash in hexadecimal representation).
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/calcurse.h b/src/calcurse.h index 8aa5c4a..4f0dc20 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -109,7 +109,8 @@ #define ATTR_HIGHEST 6 #define STATUSHEIGHT 2 -#define NOTESIZ 6 +#define MAX_NOTESIZ 40 +#define TMPEXTSIZ 6 /* Format for appointment hours is: HH:MM */ #define HRMIN_SIZE 6 |