blob: c8b2fed20ece1823f6559f6f009536a3bba110e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
diff -Naur partimage-0.6.7/src/client/misc.cpp partimage-0.6.7-new/src/client/misc.cpp
--- partimage-0.6.7/src/client/misc.cpp 2008-02-03 19:58:00.000000000 -0200
+++ partimage-0.6.7-new/src/client/misc.cpp 2009-02-26 12:57:45.000000000 -0300
@@ -2372,7 +2372,7 @@
static char *sfdisk_line_to_partition_device(const char *line)
{
- if (char *p = strchr(line, ':')) {
+ if (const char *p = strchr(line, ':')) {
while (p[-1] == ' ' && p > line) p--;
return strndup(line, p - line);
} else {
|