search for: raw_nam

Displaying 2 results from an estimated 2 matches for "raw_nam".

Did you mean: raw_name
2007 Nov 27
0
Working with one model from another
...e, :text # t.column :model, :text # t.column :origin_country, :text class QualifiedName < ActiveRecord::Base # Work some magic -- let''s populate the instance using the raw name string (e.g. "Honda Civic") def magically_understand(name_string) raw_name = RawName.new(name_string) if raw_name.is_one_word then self.make = raw_name.contents else if raw_name.is_two_words then self.make = raw_name.words.first self.model = raw_name.words.last end end if raw_name.make_could_be_japanese then self.o...
2004 Jul 14
4
String overflow in safe_strcpy .
...e_hash.c (working copy) > @@ -546,8 +546,10 @@ > /* Fill the new cache entry, and add it to the cache. */ > s1 = (char *)(new_entry + 1); > s2 = (char *)&(s1[mangled_len + 1]); > - safe_strcpy( s1, mangled_name, mangled_len ); > - safe_strcpy( s2, raw_name, raw_len ); > + memcpy( s1, mangled_name, mangled_len ); > + s1[mangled_len] = '\0'; > + memcpy( s2, raw_name, raw_len ); > + s2[raw_len] = '\0'; > ubi_cachePut( mangled_cache, i, new_entry, s1 ); > } > > -- To unsubscribe fro...