String termination logic in method 'GetExtension'
"Jerzy Kaczorowski" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.gui.devel |
|---|---|
| Message-ID | <[email protected]> |
Karl,
I restored the previous termination login in GetExtention. You can not
terminate the string using the "file" parameter because you don't own it -
it's const char*:
void GetExtension(const char* file, UStr& base, UStr& ext)
I also changed the return of strrchr to const char* to prevent the
temptation in the future ;)
Best Regards,
Jerzy
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/cvsgui-dev/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/