| commit | 24bba6e4f3a57cd8b4812c1976190356919d9c47 | [log] [tgz] |
|---|---|---|
| author | Roderick W. Smith <rodsmith@rodsbooks.com> | Sat Oct 12 19:07:16 2013 -0400 |
| committer | Roderick W. Smith <rodsmith@rodsbooks.com> | Sat Oct 12 19:07:16 2013 -0400 |
| tree | 3505ebb733a71901bdb930d5e53095be525bb8d0 | |
| parent | 0fde58b966f37807260ad0dd8997e3f0c824d39c [diff] [blame] |
Fixed bug in sgdisk that could cause segfault when passing an invalid partition number to -i/--info; added patch to fix compiling problems with some versions of GCC.
diff --git a/diskio-unix.cc b/diskio-unix.cc index 1bdb77b..388a04d 100644 --- a/diskio-unix.cc +++ b/diskio-unix.cc
@@ -19,6 +19,7 @@ #include <string.h> #include <string> #include <stdint.h> +#include <unistd.h> #include <errno.h> #include <fcntl.h> #include <sys/stat.h>