From: Steinar H. Gunderson Date: Sat, 13 Apr 2013 17:03:54 +0000 (+0200) Subject: Fix a bug introduced with the move of read_tempfile() to util.cpp. X-Git-Tag: 1.0.0~129 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=109af5c530539fd614d7d61dc33a4811ff631932 Fix a bug introduced with the move of read_tempfile() to util.cpp. --- diff --git a/main.cpp b/main.cpp index e48bdf1..67c731d 100644 --- 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)) {