X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fspreadsheet-test.c;h=995872f4370fab582744610bb47034b50401897a;hb=65d602ed236d685ffec00ad1552a193cf47b2e4d;hp=da63c0ff4a1210aebdf95188cfdb9ac005731118;hpb=6e097c89af440da90b43ce90864394c4d0c843d5;p=pspp diff --git a/src/ui/gui/spreadsheet-test.c b/src/ui/gui/spreadsheet-test.c index da63c0ff4a..995872f437 100644 --- a/src/ui/gui/spreadsheet-test.c +++ b/src/ui/gui/spreadsheet-test.c @@ -83,7 +83,7 @@ on_clicked (GtkButton *button, struct xxx *stuff) else { char *ss = xzalloc (width + 1); - memcpy (ss, value_str (val, width), width); + memcpy (ss, val->s, width); printf ("%s ", ss); free (ss); @@ -103,7 +103,7 @@ print_msg (const struct msg *m, void *aux UNUSED) int -main (int argc, char *argv[] ) +main (int argc, char *argv[]) { GtkWidget *window; GtkWidget *hbox; @@ -119,7 +119,7 @@ main (int argc, char *argv[] ) gtk_init (&argc, &argv); - if ( argc < 2) + if (argc < 2) g_error ("Usage: prog file\n"); msg_set_handler (print_msg, 0);