Revision 5fafdf24 readline.c

b/readline.c
1 1
/*
2 2
 * QEMU readline utility
3
 * 
3
 *
4 4
 * Copyright (c) 2003-2004 Fabrice Bellard
5
 * 
5
 *
6 6
 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 7
 * of this software and associated documentation files (the "Software"), to deal
8 8
 * in the Software without restriction, including without limitation the rights
......
221 221
    }
222 222
    term_hist_entry--;
223 223
    if (term_hist_entry >= 0) {
224
	pstrcpy(term_cmd_buf, sizeof(term_cmd_buf), 
224
	pstrcpy(term_cmd_buf, sizeof(term_cmd_buf),
225 225
                term_history[term_hist_entry]);
226 226
	term_cmd_buf_index = term_cmd_buf_size = strlen(term_cmd_buf);
227 227
    }
......
304 304
    char *cmdline;
305 305

  
306 306
    nb_completions = 0;
307
    
307
   
308 308
    cmdline = qemu_malloc(term_cmd_buf_index + 1);
309 309
    if (!cmdline)
310 310
        return;

Also available in: Unified diff