Skip to content

Commit f8f9ea3

Browse files
Andreas BlätteAndreas Blätte
authored andcommitted
null destination pointer warning fixed #99
1 parent 94b9d54 commit f8f9ea3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: RcppCWB
22
Type: Package
33
Title: 'Rcpp' Bindings for the 'Corpus Workbench' ('CWB')
4-
Version: 0.6.7
5-
Date: 2025-04-11
4+
Version: 0.6.8
5+
Date: 2025-07-16
66
Author: Andreas Blaette [aut, cre],
77
Bernard Desgraupes [aut],
88
Sylvain Loiseau [aut],

src/cwb/cqp/print-modes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ ComputePrintStructures(CorpusList *cl)
9191
for ( ai = al ? al->list : NULL ; ai ; ai = ai->next ) {
9292
if (p != printStructure)
9393
*p++ = ' '; /* insert blank between attributes */
94-
snprintf(p, strlen(p), "%s", ai->attribute->any.name);
94+
snprintf(p, printStructure + sizeof(printStructure) - p, "%s", ai->attribute->any.name);
9595
p += strlen(p);
9696
}
9797

0 commit comments

Comments
 (0)