Browse Source

Fix compiler warnings

pull/1/head
Timothy Pearson 3 years ago
parent
commit
5e9959ef85
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      tdeio/tdeio/kshred.cpp

+ 5
- 3
tdeio/tdeio/kshred.cpp View File

@@ -206,9 +206,11 @@ KShred::flush()
206 206
 bool
207 207
 KShred::shred()
208 208
 {
209
-  unsigned char p[6][3] = {{'\222', '\111', '\044'}, {'\111', '\044', '\222'},
210
-                           {'\044', '\222', '\111'}, {'\155', '\266', '\333'},
211
-                           {'\266', '\333', '\155'}, {'\333', '\155', '\266'}};
209
+  // WARNING
210
+  // These numbers are octal.  Do not remove the leading zeros!
211
+  unsigned char p[6][3] = {{0222, 0111,  044}, {0111,  044, 0222},
212
+                           { 044, 0222, 0111}, {0155, 0266, 0333},
213
+                           {0266, 0333, 0155}, {0333, 0155, 0266}};
212 214
   TQString msg = i18n("Shredding:  pass %1 of 35");
213 215
 
214 216
   emit processedSize(0);

Loading…
Cancel
Save