# SSPEC\_RESOURCE\_XMEMFILE() string length issue

**URL:** <https://forums.digi.com/t/sspec-resource-xmemfile-string-length-issue/10105>\
**Category:** Rabbit\
**Created:** [June 2, 2008, 3:22pm UTC](https://forums.digi.com/t/sspec-resource-xmemfile-string-length-issue/10105 "2008-06-02T15:22:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![User1106](https://avatars.discourse-cdn.com/v4/letter/u/5f9b8f/32.png) [@User1106](https://forums.digi.com/u/User1106)\
**Post date:** [June 2, 2008, 3:22pm UTC](https://forums.digi.com/t/sspec-resource-xmemfile-string-length-issue/10105/1 "2008-06-02T15:22:43Z")

</div>

I’ve noticed that when linking a file in the xmem to a URL on the webserver, you are only allowed to use 19 characters for the URL string. If the string is longer than that the compiler generates an error “String is too long” or “A char array that has an initializer the same length as the array will not be null-terminated.”

This line generates an error:  
SSPEC\_RESOURCE\_XMEMFILE(“/admin/settings.zhtml”, settings\_zhtml)

This line works:  
SSPEC\_RESOURCE\_XMEMFILE(“/adm/settings.zhtml”, settings\_zhtml)

Is there some buffer or define to set the limit of the URL string? 19 characters is a bit short.

---

<div class="post-metadata">

**Author:** ![rabideric](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@rabideric](https://forums.digi.com/u/rabideric)\
**Post date:** [December 30, 2009, 6:36pm UTC](https://forums.digi.com/t/sspec-resource-xmemfile-string-length-issue/10105/2 "2009-12-30T18:36:29Z")

</div>

Look up SSPEC\_MAXNAME in the tcpVol2 user guide.
