mirror of
git://jb55.com/damus
synced 2024-10-06 19:53:22 +00:00
nostrdb/segfault: fix weird crash in ispunct
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
76aa1d3450
commit
0e0c53145f
@ -2081,7 +2081,7 @@ static inline int is_punctuation(unsigned int codepoint) {
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// Check for ASCII punctuation
|
// Check for ASCII punctuation
|
||||||
if (ispunct(codepoint))
|
if (codepoint <= 128 && ispunct(codepoint))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
// Check for Unicode punctuation exceptions (punctuation allowed in hashtags)
|
// Check for Unicode punctuation exceptions (punctuation allowed in hashtags)
|
||||||
|
Loading…
Reference in New Issue
Block a user