Changeset 531 for trunk/src/gmake/function.c
- Timestamp:
- Sep 18, 2006, 1:49:49 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/function.c
r530 r531 886 886 { 887 887 char *result = 0; 888 888 #ifdef CONFIG_WITH_VALUE_LENGTH 889 if (len > (unsigned int)var->value_length) 890 { 891 free (var->value); 892 var->value = xmalloc (len + 1); 893 } 894 memcpy (var->value, p, len); 895 var->value[len] = '\0'; 896 var->value_length = len; 897 #else 889 898 { 890 891 892 893 894 895 899 char save = p[len]; 900 901 p[len] = '\0'; 902 free (var->value); 903 var->value = (char *) xstrdup ((char*) p); 904 p[len] = save; 896 905 } 906 #endif 897 907 898 908 result = allocated_variable_expand (body);
Note:
See TracChangeset
for help on using the changeset viewer.