Package: qfits / 6.2.0-8

02-memset.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
--- qfits-6.2.0.orig/src/qfits_filename.c
+++ qfits-6.2.0/src/qfits_filename.c
@@ -200,7 +200,7 @@
     char * lastdot ;
 
     if (strlen(filename)>MAXNAMESZ) return NULL ;
-    memset(path, MAXNAMESZ, 0);
+    memset(path, 0, MAXNAMESZ);
     strcpy(path, filename);
     lastdot = strrchr(path, '.');
     if (lastdot == NULL) return path ;