summaryrefslogtreecommitdiff
blob: 587ba84e44fcd7b3138e7f4e65c855dea71393d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff -uNr partimage-0.6.6.orig/src/client/fs/fs_base.cpp partimage-0.6.6/src/client/fs/fs_base.cpp
--- partimage-0.6.6.orig/src/client/fs/fs_base.cpp	2008-01-14 01:34:19.000000000 +0100
+++ partimage-0.6.6/src/client/fs/fs_base.cpp	2008-01-14 01:34:47.000000000 +0100
@@ -134,6 +134,7 @@
   check.cMagic[0] = 'C';
   check.cMagic[1] = 'H';
   check.cMagic[2] = 'K';
+  check.cMagic[3] = 0;
 
   dwStats = 0;
   i = 0;
diff -uNr partimage-0.6.6.orig/src/client/fs/fs_base.h partimage-0.6.6/src/client/fs/fs_base.h
--- partimage-0.6.6.orig/src/client/fs/fs_base.h	2006-04-22 16:24:14.000000000 +0200
+++ partimage-0.6.6/src/client/fs/fs_base.h	2008-01-14 01:34:47.000000000 +0100
@@ -39,7 +39,7 @@
 // ================================================
 struct CCheck
 {
-  char cMagic[3]; // must be 'C','H','K'
+  char cMagic[4]; // must be 'C','H','K'
   DWORD dwCRC; // CRC of the CHECK_FREQUENCY blocks
   QWORD qwPos; // number of the last block written
 };
diff -uNr partimage-0.6.6.orig/src/client/misc.cpp partimage-0.6.6/src/client/misc.cpp
--- partimage-0.6.6.orig/src/client/misc.cpp	2008-01-14 01:34:19.000000000 +0100
+++ partimage-0.6.6/src/client/misc.cpp	2008-01-14 01:34:47.000000000 +0100
@@ -2392,7 +2392,7 @@
   }
   p = strdup(p);
   char *q;
-  while (q = strchr(p, '/')) *q = '_';
+  while ((q = strchr(p, '/'))!=NULL) *q = '_';
 
   return p;
 }