Fix a bug introduced with the move of read_tempfile() to util.cpp.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 13 Apr 2013 17:03:54 +0000 (19:03 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 13 Apr 2013 17:03:54 +0000 (19:03 +0200)
main.cpp

index e48bdf1..67c731d 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -272,7 +272,7 @@ start:
        if (state_fd != -1) {
                fprintf(stderr, "Deserializing state from previous process... ");
                string serialized;
-               if (!read_tempfile(atoi(argv[3]), &serialized)) {
+               if (!read_tempfile(state_fd, &serialized)) {
                        exit(1);
                }
                if (!loaded_state.ParseFromString(serialized)) {