Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/french/aster/files/post-patch-bibc__supervis__aster_utils.c
16461 views
1
--- bibc/supervis/aster_utils.c.orig 2020-10-20 16:45:20.000000000 +0200
2
+++ bibc/supervis/aster_utils.c 2020-11-22 17:01:12.951054000 +0100
3
@@ -18,6 +18,8 @@
4
5
/* person_in_charge: mathieu.courtois at edf.fr */
6
7
+#include <string.h>
8
+#define __STDC_WANT_LIB_EXT1__ 1
9
#include "aster_utils.h"
10
#include "aster_module.h"
11
#include "aster_fort.h"
12
@@ -91,7 +93,9 @@
13
/* Initialise un blanc une chaine de caractères (sans '\0' à la fin).
14
* S'applique à une chaine allouée par le Fortran.
15
*/
16
- memset(fstr, ' ', flen);
17
+ if (memset_s(fstr, flen, ' ', flen) != 0) {
18
+ MYABORT("Erreur sur memset_s");
19
+ }
20
}
21
22
char * MakeBlankFStr( _IN STRING_SIZE flen )
23
24