Print this page
3471 cscope-fast writes constant strings when erroring

*** 26,37 **** /* * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ - #pragma ident "%Z%%M% %I% %E% SMI" - /* * cscope - interactive C symbol cross-reference * * display functions */ --- 26,35 ----
*** 565,576 **** void putmsg(char *msg) { if (incurses == NO) { ! *msg = tolower(*msg); ! (void) fprintf(stderr, "cscope: %s\n", msg); } else { (void) move(MSGLINE, 0); (void) clrtoeol(); (void) addstr(msg); (void) refresh(); --- 563,576 ---- void putmsg(char *msg) { if (incurses == NO) { ! char *str = stralloc(msg); ! *str = tolower(*str); ! (void) fprintf(stderr, "cscope: %s\n", str); ! (void) free(str); } else { (void) move(MSGLINE, 0); (void) clrtoeol(); (void) addstr(msg); (void) refresh();