diff --git a/timeserver/timeserver.c b/timeserver/timeserver.c index 9e0885d..ccf56e2 100644 --- a/timeserver/timeserver.c +++ b/timeserver/timeserver.c @@ -50,7 +50,7 @@ int main(int argc, char **argv) { // char *reply; - sprintf(reply, "%d", time(NULL)); + sprintf(&reply, "%d", time(NULL)); printf("%s", reply); // char *reply = time(NULL); // char *reply = "Replied";