diff options
Diffstat (limited to 'api/src/c/api-client.c')
-rw-r--r-- | api/src/c/api-client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api/src/c/api-client.c b/api/src/c/api-client.c index a9b0654c83..aa14648dfa 100644 --- a/api/src/c/api-client.c +++ b/api/src/c/api-client.c @@ -164,6 +164,11 @@ void MapsWithMe_AppendString(char * buf, int bufSize, int * bytesAppended, char *bytesAppended += size; } +int MapsWithMe_GetMaxBufferSize(int nameSize) +{ + return ((nameSize == 0) ? 17 : 17 + 3 * nameSize + 1); +} + int MapsWithMe_GenShortShowMapUrl(double lat, double lon, double zoom, char const * name, char * buf, int bufSize) { // URL format: |