Changeset 91ef0d95 in mainline
- Timestamp:
 - 2005-12-13T22:30:31Z (20 years ago)
 - Branches:
 - lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
 - Children:
 - dbb6886
 - Parents:
 - 5a95b25
 - File:
 - 
      
- 1 edited
 
- 
          
  generic/src/debug/symtab.c (modified) (3 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
generic/src/debug/symtab.c
r5a95b25 r91ef0d95 145 145 * @returns - 0 - nothing found, 1 - success, >1 print duplicates 146 146 */ 147 int symtab_compl(char * name)147 int symtab_compl(char *input) 148 148 { 149 149 char output[MAX_SYMBOL_NAME+1]; … … 152 152 int found = 0; 153 153 int i; 154 char *name = input; 155 156 /* Allow completion of pointers */ 157 if (name[0] == '*' || name[0] == '&') 158 name++; 154 159 155 160 /* Do not print everything */ 156 161 if (!strlen(name)) 157 162 return 0; 163 158 164 159 165 output[0] = '\0'; … … 181 187 } 182 188 } 183 strncpy( name, output, MAX_SYMBOL_NAME);189 strncpy(input, output, MAX_SYMBOL_NAME); 184 190 return found; 185 191  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  